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:
4
misc.c
4
misc.c
@@ -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)
|
||||
|
Reference in New Issue
Block a user