(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

@@ -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;
}
}
}