(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.

This commit is contained in:
peter1138
2008-01-01 22:34:00 +00:00
parent 5c23778065
commit 890296c125
6 changed files with 11 additions and 2 deletions

View File

@@ -1157,6 +1157,7 @@ void PlayerVehWndProc(Window *w, WindowEvent *e)
break;
case WE_TICK: /* resort the list every 20 seconds orso (10 days) */
if (_pause_game != 0) break;
if (--vl->l.resort_timer == 0) {
StationID station = ((w->window_number & VLW_MASK) == VLW_STATION_LIST) ? GB(w->window_number, 16, 16) : INVALID_STATION;
PlayerID owner = (PlayerID)w->caption_color;