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

This commit is contained in:
peter1138 2019-03-06 18:27:54 +00:00 committed by Michael Lutz
parent 1ad8321fff
commit a69eb5f516

View File

@ -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 */