diff options
author | rubidium <rubidium@openttd.org> | 2011-01-31 20:27:33 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-01-31 20:27:33 +0000 |
commit | 67a5cd0b185158ca4926c8cb45f1735a1001e00b (patch) | |
tree | 9c1da7950e0954846792a820537dbd4778932e19 /src/saveload/oldloader_sl.cpp | |
parent | 8f67baae2e5766300442f9ca5c962dbbce848ad4 (diff) | |
download | openttd-67a5cd0b185158ca4926c8cb45f1735a1001e00b.tar.xz |
(svn r21932) -Document: some tidbits related to vehicles
Diffstat (limited to 'src/saveload/oldloader_sl.cpp')
-rw-r--r-- | src/saveload/oldloader_sl.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/saveload/oldloader_sl.cpp b/src/saveload/oldloader_sl.cpp index f6572cd8f..e846c1ce5 100644 --- a/src/saveload/oldloader_sl.cpp +++ b/src/saveload/oldloader_sl.cpp @@ -163,6 +163,11 @@ static void FixOldTowns() static StringID *_old_vehicle_names; +/** + * Convert the old style vehicles into something that resembles + * the old new style savegames. Then #AfterLoadGame can handle + * the rest of the conversion. + */ void FixOldVehicles() { Vehicle *v; @@ -1212,6 +1217,12 @@ static const OldChunks vehicle_chunk[] = { OCL_END() }; +/** + * Load the vehicles of an old style savegame. + * @param ls State (buffer) of the currently loaded game. + * @param num The number of vehicles to load. + * @return True iff loading went without problems. + */ bool LoadOldVehicle(LoadgameState *ls, int num) { /* Read the TTDPatch flags, because we need some info from it */ |