mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
Use flag GVF_CHUNNEL_BIT properly
This commit is contained in:
parent
60345d2e18
commit
d5a316e365
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user