changeset 946 | 2468063f35a4 |
parent 926 | a6d140a6a4de |
child 980 | 6b3163c417ab |
--- a/rail_gui.c Sat Jan 08 19:34:00 2005 +0000 +++ b/rail_gui.c Sat Jan 08 20:55:21 2005 +0000 @@ -803,6 +803,8 @@ { Window *w; + if (_current_player == OWNER_SPECTATOR) return; + // don't recreate the window if we're clicking on a button and the window exists. if (button < 0 || !(w = FindWindowById(WC_BUILD_TOOLBAR, 0)) || w->wndproc != BuildRailToolbWndProc) { DeleteWindowById(WC_BUILD_TOOLBAR, 0);