summaryrefslogtreecommitdiff
path: root/src/group_gui.cpp
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2008-01-01 22:34:00 +0000
committerpeter1138 <peter1138@openttd.org>2008-01-01 22:34:00 +0000
commitfa83291a766d23bbffbf4f860e040ae669423f31 (patch)
tree0457000dece8ef1a1e93d2d81127d4772fae6376 /src/group_gui.cpp
parent47082fec5c9be387803096d2c4a7d808d1ac4773 (diff)
downloadopenttd-fa83291a766d23bbffbf4f860e040ae669423f31.tar.xz
(svn r11742) -Codechange [FS#1319]: Run window tick events when paused, so that news pop-ups and the about window still progress. For other windows the events are ignored when paused.
Diffstat (limited to 'src/group_gui.cpp')
-rw-r--r--src/group_gui.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/group_gui.cpp b/src/group_gui.cpp
index 5bcb554a2..e7368312c 100644
--- a/src/group_gui.cpp
+++ b/src/group_gui.cpp
@@ -752,6 +752,7 @@ static void GroupWndProc(Window *w, WindowEvent *e)
case WE_TICK: // resort the lists every 20 seconds orso (10 days)
+ if (_pause_game != 0) break;
if (--gv->l.resort_timer == 0) {
gv->l.resort_timer = DAY_TICKS * PERIODIC_RESORT_DAYS;
gv->l.flags |= VL_RESORT;
@@ -763,7 +764,7 @@ static void GroupWndProc(Window *w, WindowEvent *e)
SetWindowDirty(w);
}
break;
- }
+ }
}