diff options
author | truelight <truelight@openttd.org> | 2005-03-28 12:38:02 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2005-03-28 12:38:02 +0000 |
commit | 555a78aaacf889f22645ef5103ed9ad4f0d6c876 (patch) | |
tree | b8b2a87a1734b23f0586dde35d303dbc873b9951 /misc.c | |
parent | fbe7139358ba92f17e733c1cad1b56ae0bdb2051 (diff) | |
download | openttd-555a78aaacf889f22645ef5103ed9ad4f0d6c876.tar.xz |
(svn r2099) -Fix: no longer chat-messages hang when the game wraps around 2090
-Codechange: while trying to find this bug, made texteff.c a bit more readable :)
Diffstat (limited to 'misc.c')
-rw-r--r-- | misc.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -683,6 +683,10 @@ void IncreaseDate(void) FOR_ALL_VEHICLES(v) { v->date_of_last_service -= 365; // 1 year is 365 days long } + + /* Because the _date wraps here, and text-messages expire by game-days, we have to clean out + * all of them if the date is set back, else those messages will hang for ever */ + InitTextMessage(); } if (_patches.auto_euro) |