(svn r14135) -Codechange: Add owner to waypoints. Previously, it was guessed from rail underneath it.
This commit is contained in:
@@ -1182,7 +1182,7 @@ void ShowVehicleListWindow(PlayerID player, VehicleType vehicle_type)
|
||||
void ShowVehicleListWindow(const Waypoint *wp)
|
||||
{
|
||||
if (wp == NULL) return;
|
||||
ShowVehicleListWindowLocal(GetTileOwner(wp->xy), VLW_WAYPOINT_LIST, VEH_TRAIN, wp->index);
|
||||
ShowVehicleListWindowLocal(wp->owner, VLW_WAYPOINT_LIST, VEH_TRAIN, wp->index);
|
||||
}
|
||||
|
||||
void ShowVehicleListWindow(const Vehicle *v)
|
||||
|
Reference in New Issue
Block a user