Fix #7334: Ship lost after crossing bridge due to path cache not being consumed while on final bridge end.

pull/82/head
peter1138 5 years ago committed by Michael Lutz
parent 1ad8321fff
commit a69eb5f516

@ -759,6 +759,10 @@ static void ShipController(Ship *v)
if ((v->vehstatus & VS_HIDDEN) == 0) v->Vehicle::UpdateViewport(true);
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 */

Loading…
Cancel
Save