(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 b6ae11f3ae
commit 23b1f53ff6
7 changed files with 128 additions and 116 deletions

View File

@@ -442,7 +442,7 @@ CommandCost CmdInsertOrder(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
if (!IsValidWaypointID(new_order.GetDestination())) return CMD_ERROR;
const Waypoint *wp = GetWaypoint(new_order.GetDestination());
if (!CheckOwnership(GetTileOwner(wp->xy))) return CMD_ERROR;
if (!CheckOwnership(wp->owner)) return CMD_ERROR;
/* Order flags can be any of the following for waypoints:
* [non-stop]