Use flag GVF_CHUNNEL_BIT properly
This commit is contained in:

committed by
Jonathan G Rennison

parent
60345d2e18
commit
d5a316e365
@@ -3912,7 +3912,7 @@ bool TrainController(Train *v, Vehicle *nomove, bool reverse)
|
||||
v->x_pos = gp.x;
|
||||
v->y_pos = gp.y;
|
||||
v->UpdatePosition();
|
||||
if (v->track == TRACK_BIT_WORMHOLE) {
|
||||
if (HasBit(v->gv_flags, GVF_CHUNNEL_BIT)) {
|
||||
/* update the Z position of the vehicle */
|
||||
int old_z = v->UpdateInclination(false, false, true);
|
||||
|
||||
|
Reference in New Issue
Block a user