mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-09 15:53:36 +00:00
Fix #7334: Ship lost after crossing bridge due to path cache not being consumed while on final bridge end.
This commit is contained in:
parent
1ad8321fff
commit
a69eb5f516
@ -759,6 +759,10 @@ static void ShipController(Ship *v)
|
|||||||
if ((v->vehstatus & VS_HIDDEN) == 0) v->Vehicle::UpdateViewport(true);
|
if ((v->vehstatus & VS_HIDDEN) == 0) v->Vehicle::UpdateViewport(true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Ship is back on the bridge head, we need to comsume its path
|
||||||
|
* cache entry here as we didn't have to choose a ship track. */
|
||||||
|
if (!v->path.empty()) v->path.pop_front();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* update image of ship, as well as delta XY */
|
/* update image of ship, as well as delta XY */
|
||||||
|
Loading…
Reference in New Issue
Block a user