mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-24 06:59:10 +00:00
(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)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user