Skip to content

Commit

Permalink
Fix #7334: Ship lost after crossing bridge due to path cache not bein…
Browse files Browse the repository at this point in the history
…g consumed while on final bridge end.
  • Loading branch information
PeterN authored and TrueBrain committed Mar 10, 2019
1 parent 948de16 commit 54c5bac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ship_cmd.cpp
Expand Up @@ -766,6 +766,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 */
Expand Down

0 comments on commit 54c5bac

Please sign in to comment.