From d5a316e3652f27fcbbfa2b0423eb3324fd6ee16c Mon Sep 17 00:00:00 2001 From: HackaLittleBit Date: Mon, 26 Feb 2018 00:58:09 +0000 Subject: [PATCH] Use flag GVF_CHUNNEL_BIT properly --- src/train_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp index dd5f70bf2f..2e49946d89 100644 --- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -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);