(svn r21504) -Codechange: move the "lost" bit from the train's flags to vehicle flags

This commit is contained in:
rubidium
2010-12-13 21:52:39 +00:00
parent a2b50b05c1
commit 49a77e89c4
4 changed files with 17 additions and 8 deletions

View File

@@ -2392,6 +2392,17 @@ bool AfterLoadGame()
}
}
if (IsSavegameVersionBefore(156)) {
/* The train's pathfinder lost flag got moved. */
Train *t;
FOR_ALL_TRAINS(t) {
if (!HasBit(t->flags, 5)) continue;
ClrBit(t->flags, 5);
SetBit(t->vehicle_flags, VF_PATHFINDER_LOST);
}
}
/* Road stops is 'only' updating some caches */
AfterLoadRoadStops();
AfterLoadLabelMaps();