Chunnel: Adjust z position of vehicles in chunnels to go "under" the water.
This commit is contained in:
@@ -1184,6 +1184,7 @@ bool IndividualRoadVehicleController(RoadVehicle *v, const RoadVehicle *prev)
|
||||
v->x_pos = gp.x;
|
||||
v->y_pos = gp.y;
|
||||
v->UpdatePosition();
|
||||
RoadZPosAffectSpeed(v, v->UpdateInclination(false, false, true));
|
||||
if (v->IsDrawn()) v->Vehicle::UpdateViewport(true);
|
||||
return true;
|
||||
}
|
||||
@@ -1555,7 +1556,7 @@ again:
|
||||
v->x_pos = x;
|
||||
v->y_pos = y;
|
||||
v->UpdatePosition();
|
||||
RoadZPosAffectSpeed(v, v->UpdateInclination(false, true));
|
||||
RoadZPosAffectSpeed(v, v->UpdateInclination(false, true, v->state == RVSB_WORMHOLE));
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user