mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-04 13:23:46 +00:00
(svn r10268) -Fix: some old savegames could have the wrong bits unset (follow up of r10147)
This commit is contained in:
parent
8dff21e421
commit
96d208d04b
@ -2061,6 +2061,16 @@ bool AfterLoadGame()
|
||||
}
|
||||
}
|
||||
|
||||
if (CheckSavegameVersion(69)) {
|
||||
/* In some old savegames a bit was cleared when it should not be cleared */
|
||||
Vehicle *v;
|
||||
FOR_ALL_VEHICLES(v) {
|
||||
if (v->type == VEH_ROAD && (v->u.road.state == 250 || v->u.road.state == 251)) {
|
||||
SETBIT(v->u.road.state, RVS_IS_STOPPING);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Recalculate */
|
||||
Group *g;
|
||||
FOR_ALL_GROUPS(g) {
|
||||
|
Loading…
Reference in New Issue
Block a user