summaryrefslogtreecommitdiff
path: root/src/station_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/station_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/station_gui.cpp')
-rw-r--r--src/station_gui.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/station_gui.cpp b/src/station_gui.cpp
index 0da9f32e7..cf19c1969 100644
--- a/src/station_gui.cpp
+++ b/src/station_gui.cpp
@@ -544,6 +544,7 @@ static void PlayerStationsWndProc(Window *w, WindowEvent *e)
break;
case WE_TICK:
+ if (_pause_game != 0) break;
if (--sl->resort_timer == 0) {
DEBUG(misc, 3, "Periodic rebuild station list player %d", owner);
sl->resort_timer = DAY_TICKS * PERIODIC_RESORT_DAYS;