From 83637d164e8be15166aeb39134170ecbe02173d3 Mon Sep 17 00:00:00 2001 From: truelight Date: Thu, 24 Mar 2005 17:03:37 +0000 Subject: (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) --- ttd.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'ttd.c') 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 @@ -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(); -- cgit v1.2.3-54-g00ecf