From 45c9a747db37ef134a4681da8d0a6064e8fbf677 Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 30 Jul 2009 22:05:57 +0000 Subject: (svn r16999) -Fix (r16993): AIs couldn't build waypoints anymore --- src/ai/api/ai_rail.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/ai/api/ai_rail.cpp b/src/ai/api/ai_rail.cpp index 1579dc165..e84eb0d51 100644 --- a/src/ai/api/ai_rail.cpp +++ b/src/ai/api/ai_rail.cpp @@ -177,7 +177,7 @@ EnforcePrecondition(false, GetRailTracks(tile) == RAILTRACK_NE_SW || GetRailTracks(tile) == RAILTRACK_NW_SE); EnforcePrecondition(false, IsRailTypeAvailable(GetCurrentRailType())); - return AIObject::DoCommand(tile, 0, 0, CMD_BUILD_RAIL_WAYPOINT); + return AIObject::DoCommand(tile, GetCurrentRailType() | (GetRailTracks(tile) == RAILTRACK_NE_SW ? AXIS_X : AXIS_Y) << 4 | 1 << 8 | 1 << 16, STAT_CLASS_WAYP | INVALID_STATION << 16, CMD_BUILD_RAIL_WAYPOINT); } /* static */ bool AIRail::RemoveRailWaypoint(TileIndex tile) -- cgit v1.2.3-70-g09d2