diff --git a/doc/ChangeLog.html b/doc/ChangeLog.html index 0637658d9..5dca223c4 100644 --- a/doc/ChangeLog.html +++ b/doc/ChangeLog.html @@ -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> diff --git a/src/ui/menus.cpp b/src/ui/menus.cpp index 41dd82444..55e661a05 100644 --- a/src/ui/menus.cpp +++ b/src/ui/menus.cpp @@ -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); }