diff options
author | truelight <truelight@openttd.org> | 2005-03-24 17:03:37 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2005-03-24 17:03:37 +0000 |
commit | 83637d164e8be15166aeb39134170ecbe02173d3 (patch) | |
tree | 45d160ba77950eea4f380bd7ff3bbcf6644f651a /ttd.c | |
parent | f86318407ca89cecce23128f34c61f9fa4f078b7 (diff) | |
download | openttd-83637d164e8be15166aeb39134170ecbe02173d3.tar.xz |
(svn r2046) -Codechange: moved all waypoint code to waypoint.c/waypoint.h
-Codechange: rewrote some functions while moving waypoint-stuff
-Add: added support for 64k waypoints
-Fix: made the waypoint struct a bit more logic (no bit-fucking)
Diffstat (limited to 'ttd.c')
-rw-r--r-- | ttd.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -34,6 +34,7 @@ #include "network.h" #include "signs.h" #include "depot.h" +#include "waypoint.h" #include <stdarg.h> @@ -1318,6 +1319,13 @@ bool AfterLoadGame(uint version) // Update all vehicles AfterLoadVehicles(); + + // Update all waypoints + if (version < 0x0C00) + FixOldWaypoints(); + + UpdateAllWaypointSigns(); + // in version 2.2 of the savegame, we have new airports if (version <= 0x201) { UpdateOldAircraft(); |