From 2ff8addf562ec640eb5a574c532aacb247933dc5 Mon Sep 17 00:00:00 2001 From: Per Inge Mathisen Date: Sun, 16 Dec 2007 15:15:01 +0000 Subject: [PATCH] Fix fog debug messages that said the opposite of what they meant. git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3074 4a71c877-e1ca-e34f-864e-861f7616d084 --- src/advvis.c | 2 +- src/warzoneconfig.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/advvis.c b/src/advvis.c index 8dca03435..00bafda5c 100644 --- a/src/advvis.c +++ b/src/advvis.c @@ -42,7 +42,7 @@ static BOOL bRevealActive = FALSE; // ------------------------------------------------------------------------------------ void avSetStatus(BOOL var) { - debug(LOG_FOG, "avSetStatus: Setting visual fog %s", var ? "ON" : "OFF"); + debug(LOG_FOG, "avSetStatus: Setting fog of war %s", var ? "ON" : "OFF"); bRevealActive = var; } diff --git a/src/warzoneconfig.c b/src/warzoneconfig.c index 54a2b4436..c0e962bd8 100644 --- a/src/warzoneconfig.c +++ b/src/warzoneconfig.c @@ -144,7 +144,8 @@ UDWORD war_GetHeight(void) /***************************************************************************/ void war_SetFog(BOOL val) { - debug(LOG_FOG, "Fog of war turned %s", val ? "ON" : "OFF"); + debug(LOG_FOG, "Visual fog turned %s", val ? "ON" : "OFF"); + if (warGlobs.bFog != val) { warGlobs.bFog = val;