Fixed bug : Disable fog of war in menus in net game

This commit is contained in:
jsalmon3 2002-05-30 23:50:21 +00:00
parent dad53dffaf
commit 041b366ed6
2 changed files with 15 additions and 4 deletions

View file

@ -831,6 +831,8 @@
<LI>Fixed bug: Chat messages that are too wide are wrapped (from
Jimmy Salmon).
<LI>Fixed bug: Right clicking a wall will attack it now (from Jimmy Salmon).
<LI>Fixed bug #562444: Disable fog of war in menus in net game (from
Jimmy Salmon).
</UL>
</UL>

View file

@ -2058,11 +2058,14 @@ local void DrawGem(Menuitem *mi, unsigned mx, unsigned my)
}
if (flags&MenuButtonDisabled) {
rb--;
} else if (flags&MenuButtonClicked) {
rb++;
}
if ((mi->d.gem.state & MI_GSTATE_CHECKED)) {
rb += 2;
else {
if (flags&MenuButtonClicked) {
rb++;
}
if ((mi->d.gem.state & MI_GSTATE_CHECKED)) {
rb += 2;
}
}
VideoDraw(MenuButtonGfx.Sprite, rb, x, y);
}
@ -2540,6 +2543,12 @@ global void Preferences(void)
PreferencesMenuItems[1].d.gem.state = MI_GSTATE_CHECKED;
else
PreferencesMenuItems[1].d.gem.state = MI_GSTATE_UNCHECKED;
if (NetworkFildes == -1)
PreferencesMenuItems[1].flags = MI_ENABLED;
else
PreferencesMenuItems[1].flags = MI_DISABLED;
ProcessMenu(MENU_PREFERENCES, 1);
}