Changeset - r23416:88996730d74a
[Not reviewed]
master
0 1 0
peter1138 - 5 years ago 2019-03-06 18:27:54
peter1138@openttd.org
Fix #7334: Ship lost after crossing bridge due to path cache not being consumed while on final bridge end.
1 file changed with 4 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/ship_cmd.cpp
Show inline comments
 
@@ -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 */
0 comments (0 inline, 0 general)