summaryrefslogtreecommitdiff
path: root/ttd.c
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2005-03-24 17:03:37 +0000
committertruelight <truelight@openttd.org>2005-03-24 17:03:37 +0000
commit83637d164e8be15166aeb39134170ecbe02173d3 (patch)
tree45d160ba77950eea4f380bd7ff3bbcf6644f651a /ttd.c
parentf86318407ca89cecce23128f34c61f9fa4f078b7 (diff)
downloadopenttd-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.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/ttd.c b/ttd.c
index 159306c18..c424a7971 100644
--- a/ttd.c
+++ b/ttd.c
@@ -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();