Reduce redundant calls to get current max speed for trains and RVs
Between ShowVisualEffect() and UpdateSpeed()
This commit is contained in:
@@ -885,7 +885,7 @@ static void ShipController(Ship *v)
|
||||
|
||||
if (CheckShipLeaveDepot(v)) return;
|
||||
|
||||
v->ShowVisualEffect();
|
||||
v->ShowVisualEffect(UINT_MAX);
|
||||
|
||||
/* Rotating on spot */
|
||||
if (v->direction != v->rotation) {
|
||||
|
Reference in New Issue
Block a user