summaryrefslogtreecommitdiff
path: root/main_gui.c
diff options
context:
space:
mode:
authordarkvater <darkvater@openttd.org>2004-09-10 22:43:40 +0000
committerdarkvater <darkvater@openttd.org>2004-09-10 22:43:40 +0000
commit80cb0b7fd67758743208bff73d0a13cec39e62dc (patch)
treeebb1dedefbb3b4c4c5e525c3af87944691d0bd2b /main_gui.c
parent0caa819190340b7bdbc8d9df41603fcea4d72246 (diff)
downloadopenttd-80cb0b7fd67758743208bff73d0a13cec39e62dc.tar.xz
(svn r197) -Fix: Disable Fast Forward in network games visually (didn't work anyways, just showed graphical output)
Diffstat (limited to 'main_gui.c')
-rw-r--r--main_gui.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/main_gui.c b/main_gui.c
index a7a8adef4..a281b3153 100644
--- a/main_gui.c
+++ b/main_gui.c
@@ -1654,6 +1654,9 @@ static void MainToolbarWndProc(Window *w, WindowEvent *e)
GfxFillRect(0, 0, w->width-1, w->height-1, 0xB2);
GfxFillRect(0, 0, w->width-1, w->height-1, 0x80B4);
+ // if networking, disable fast-forward button
+ if (_networking) w->disabled_state |= (1 << 1);
+
// if spectator, disable things
if (_current_player == OWNER_SPECTATOR){
w->disabled_state |= (1 << 0) | (1 << 19) | (1<<20) | (1<<21) | (1<<22) | (1<<23);