Remove the redundant avSetStatus().

It does exactly the same as setRevealStatus(), and was only called together
with war_SetFog(), which calls setRevealStatus() anyway.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/branches/qt-trunk@11039 4a71c877-e1ca-e34f-864e-861f7616d084
master
Christian Ohm 2010-06-26 19:29:31 +00:00 committed by Git SVN Gateway
parent ffaaaf3872
commit a8b029d700
4 changed files with 0 additions and 13 deletions

View File

@ -35,13 +35,6 @@
static BOOL bRevealActive = false;
// ------------------------------------------------------------------------------------
void avSetStatus(BOOL var)
{
debug(LOG_FOG, "avSetStatus: Setting fog of war %s", var ? "ON" : "OFF");
bRevealActive = var;
}
// ------------------------------------------------------------------------------------
void avUpdateTiles( void )
{

View File

@ -33,7 +33,6 @@ UDWORD avGetObjLightLevel(BASE_OBJECT *psObj, UDWORD origLevel);
void setRevealStatus(BOOL val);
BOOL getRevealStatus(void);
void preProcessVisibility(void);
void avSetStatus(BOOL var);
#ifdef __cplusplus
}

View File

@ -378,17 +378,14 @@ BOOL loadConfig(void)
if(val)
{
war_SetFog(false);
avSetStatus(true);
}
else
{
avSetStatus(false);
war_SetFog(true);
}
}
else
{
avSetStatus(false);
war_SetFog(true);
setWarzoneKeyNumeric("visfog", 0);
}

View File

@ -582,13 +582,11 @@ BOOL runGraphicsOptionsMenu(void)
{ // turn off crap fog, turn on vis fog.
debug(LOG_FOG, "runGameOptions2Menu: Fog of war ON, visual fog OFF");
war_SetFog(false);
avSetStatus(true);
widgSetString(psWScreen,FRONTEND_FOGTYPE_R, _("Fog Of War"));
}
else
{ // turn off vis fog, turn on normal crap fog.
debug(LOG_FOG, "runGameOptions2Menu: Fog of war OFF, visual fog ON");
avSetStatus(false);
war_SetFog(true);
widgSetString(psWScreen,FRONTEND_FOGTYPE_R, _("Mist"));
}