summaryrefslogtreecommitdiff
path: root/vehicle.h
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2005-01-09 16:02:06 +0000
committertruelight <truelight@openttd.org>2005-01-09 16:02:06 +0000
commitd9ea82a8866a2376936c5eeb21a1ba9552825741 (patch)
treed8c14f455f5dc2cf54de21fd2c39f0f1bef4b4f4 /vehicle.h
parent0cfc15a47526e41426251fcbe061e1f47bafb81a (diff)
downloadopenttd-d9ea82a8866a2376936c5eeb21a1ba9552825741.tar.xz
(svn r1445) -Fix: reversing a train also reverses the UP and DOWN status for the
realistic acceleration calculation -Fix: there was a big bug in setting the UP and DOWN flags making it easy possible for a overloaded train to go up a mountain. This is no longer possible. They will hang at a certain height
Diffstat (limited to 'vehicle.h')
-rw-r--r--vehicle.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/vehicle.h b/vehicle.h
index 3564aed39..61db1cce3 100644
--- a/vehicle.h
+++ b/vehicle.h
@@ -55,11 +55,11 @@ typedef struct VehicleRail {
} VehicleRail;
enum {
- VRF_REVERSING = 1,
+ VRF_REVERSING = 0,
// used to calculate if train is going up or down
- VRF_GOINGUP = 2,
- VRF_GOINGDOWN = 4,
+ VRF_GOINGUP = 1,
+ VRF_GOINGDOWN = 2,
};
typedef struct VehicleAir {