(svn r14135) -Codechange: Add owner to waypoints. Previously, it was guessed from rail underneath it.

This commit is contained in:
belugas
2008-08-23 02:15:46 +00:00
parent f625ecbeba
commit 7dc212edeb
7 changed files with 128 additions and 116 deletions

View File

@@ -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)