From d9ea82a8866a2376936c5eeb21a1ba9552825741 Mon Sep 17 00:00:00 2001 From: truelight Date: Sun, 9 Jan 2005 16:02:06 +0000 Subject: (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 --- vehicle.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'vehicle.h') 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 { -- cgit v1.2.3-54-g00ecf