Reduce redundant calls to get current max speed for trains and RVs

Between ShowVisualEffect() and UpdateSpeed()
This commit is contained in:
Jonathan G Rennison
2022-06-01 20:05:45 +01:00
parent af270a63ad
commit 6d877b5e70
7 changed files with 28 additions and 21 deletions

View File

@@ -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) {