1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-31 10:29:10 +00:00

(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 :)
This commit is contained in:
truelight
2005-03-28 12:38:02 +00:00
parent e4cb9dbb77
commit 4573a9f872
2 changed files with 38 additions and 18 deletions

4
misc.c
View File

@@ -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)