Use flag GVF_CHUNNEL_BIT properly

This commit is contained in:
HackaLittleBit 2018-02-26 00:58:09 +00:00 committed by Jonathan G Rennison
parent 60345d2e18
commit d5a316e365

View File

@ -3912,7 +3912,7 @@ bool TrainController(Train *v, Vehicle *nomove, bool reverse)
v->x_pos = gp.x; v->x_pos = gp.x;
v->y_pos = gp.y; v->y_pos = gp.y;
v->UpdatePosition(); v->UpdatePosition();
if (v->track == TRACK_BIT_WORMHOLE) { if (HasBit(v->gv_flags, GVF_CHUNNEL_BIT)) {
/* update the Z position of the vehicle */ /* update the Z position of the vehicle */
int old_z = v->UpdateInclination(false, false, true); int old_z = v->UpdateInclination(false, false, true);