Skip to content

Commit

Permalink
Fix GUI bug where scav button pretends to be clickable even when not …
Browse files Browse the repository at this point in the history
…the host.
  • Loading branch information
Subsentient authored and Cyp committed Jan 10, 2013
1 parent 40cbe80 commit 781a81c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/multiint.cpp
Expand Up @@ -2638,6 +2638,9 @@ static void disableMultiButs(void)

if (!NetPlay.isHost)
{
if(game.scavengers) widgSetButtonState(psWScreen, MULTIOP_SKIRMISH, WBUT_DISABLE);
if(!game.scavengers) widgSetButtonState(psWScreen, MULTIOP_CAMPAIGN, WBUT_DISABLE);

This comment has been minimized.

Copy link
@Cjkjvfnby

Cjkjvfnby Jan 10, 2013

Contributor

Are (!game.scavengers) means else for if(game.scavengers)?

This comment has been minimized.

Copy link
@Subsentient

Subsentient Jan 14, 2013

Author Contributor

!game.scavengers means game.scavengers == false


if(game.base != CAMP_CLEAN) widgSetButtonState(psWScreen,MULTIOP_CLEAN ,WBUT_DISABLE); // camapign subtype.
if(game.base != CAMP_BASE) widgSetButtonState(psWScreen,MULTIOP_BASE ,WBUT_DISABLE);
if(game.base != CAMP_WALLS) widgSetButtonState(psWScreen,MULTIOP_DEFENCE,WBUT_DISABLE);
Expand Down

0 comments on commit 781a81c

Please sign in to comment.