summaryrefslogtreecommitdiff
path: root/vehicle.h
diff options
context:
space:
mode:
authormatthijs <matthijs@openttd.org>2005-06-17 00:22:46 +0000
committermatthijs <matthijs@openttd.org>2005-06-17 00:22:46 +0000
commit8e535337861d419c6fc9cdd450e90689fad30e7d (patch)
treea60eac6f771503fb49ad4ddc8a7898fb0e6ee996 /vehicle.h
parentbacc5396e6e6851877da254319301bee6c1c0255 (diff)
downloadopenttd-8e535337861d419c6fc9cdd450e90689fad30e7d.tar.xz
(svn r2450) * Codechange: Replaced all uses of the arrays in tile.h with calls to the associated wrapper functions.
* Codechange: Made npf.c use some map array accessing wrappers instead of direct access. * Codechange/Fix: Named every enum in tile.h. Fixes a nasty bug on MSVC where arrays would be initialised with zeroes (tnx Asterix_) * Removed magic numbers from tables in tile.c. * Added some explicit casts in tile.h.
Diffstat (limited to 'vehicle.h')
-rw-r--r--vehicle.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/vehicle.h b/vehicle.h
index cee8a2450..5cd0f9db5 100644
--- a/vehicle.h
+++ b/vehicle.h
@@ -3,6 +3,7 @@
#include "pool.h"
#include "order.h"
+#include "rail.h"
enum {
VEH_Train = 0x10,
@@ -340,7 +341,7 @@ typedef struct GetNewVehiclePosResult {
* For other vehicles types, or vehicles with no clear trackdir (such as those
* in depots), returns 0xFF.
*/
-byte GetVehicleTrackdir(const Vehicle* v);
+Trackdir GetVehicleTrackdir(const Vehicle* v);
/* returns true if staying in the same tile */
bool GetNewVehiclePos(Vehicle *v, GetNewVehiclePosResult *gp);