Quick fix to make the game honour the selected fog mode in both singleplayer and multiplayer.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1273 4a71c877-e1ca-e34f-864e-861f7616d084
master
Gerard Krol 2007-03-20 18:03:05 +00:00
parent 575e5a1ac7
commit b5ffa39b9a
2 changed files with 5 additions and 1 deletions

View File

@ -183,8 +183,9 @@ GAMECODE gameLoop(void)
#endif
//JPS 24 feb???
if (fogStatus & FOG_BACKGROUND)
if (war_GetFog())
{
// Mist
clearMode = CLEAR_FOG;//screen clear to fog colour D3D
if (loopMissionState == LMS_SAVECONTINUE)
{
@ -194,6 +195,7 @@ GAMECODE gameLoop(void)
}
else
{
// Fog of War
clearMode = CLEAR_BLACK;//force to black 3DFX
}
pie_ScreenFlip(clearMode);//gameloopflip

View File

@ -1975,6 +1975,7 @@ static void processMultiopWidgets(UDWORD id)
widgSetButtonState(psWScreen, MULTIOP_FOG_ON,WBUT_LOCK);
widgSetButtonState(psWScreen, MULTIOP_FOG_OFF,0);
game.fog = TRUE;
war_SetFog(FALSE); // FIXME: multiplayer FOG_ON means fog of war active
if(bHosted)
{
sendOptions(0,0);
@ -1985,6 +1986,7 @@ static void processMultiopWidgets(UDWORD id)
widgSetButtonState(psWScreen, MULTIOP_FOG_ON,0);
widgSetButtonState(psWScreen, MULTIOP_FOG_OFF,WBUT_LOCK);
game.fog = FALSE;
war_SetFog(TRUE);
if(bHosted)
{
sendOptions(0,0);