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 | d1e158d6f723b6fcb2f1edf1ffac29b81ed307e7 (patch) | |
tree | 45d160ba77950eea4f380bd7ff3bbcf6644f651a /train_cmd.c | |
parent | 625d041e99b5ddd75a8f4cd3a1e11d9923d219f9 (diff) | |
download | openttd-d1e158d6f723b6fcb2f1edf1ffac29b81ed307e7.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 'train_cmd.c')
-rw-r--r-- | train_cmd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/train_cmd.c b/train_cmd.c index 09b2ce019..39a247fe3 100644 --- a/train_cmd.c +++ b/train_cmd.c @@ -15,6 +15,7 @@ #include "player.h" #include "sound.h" #include "depot.h" +#include "waypoint.h" #define is_firsthead_sprite(spritenum) \ (is_custom_sprite(spritenum) \ @@ -1916,7 +1917,7 @@ static bool ProcessTrainOrder(Vehicle *v) break; case OT_GOTO_WAYPOINT: - v->dest_tile = _waypoints[order->station].xy; + v->dest_tile = GetWaypoint(order->station)->xy; result = CheckReverseTrain(v); break; } |