diff options
author | celestar <celestar@openttd.org> | 2005-01-29 19:41:44 +0000 |
---|---|---|
committer | celestar <celestar@openttd.org> | 2005-01-29 19:41:44 +0000 |
commit | 752b3f0dd614217d68f361e2d0b2cc599a37c860 (patch) | |
tree | fcefcecfa2ec7dd8e9178d5206788bd62dcf3c53 /ai_build.c | |
parent | 885fd2b15c1ae9a1422f82b8bcdd9d1a287c3aa6 (diff) | |
download | openttd-752b3f0dd614217d68f361e2d0b2cc599a37c860.tar.xz |
(svn r1721) -Feature: It is now possible to build multiple road stations (up to 8) on
a single station.
Thanks to: Truelight for the saveload code, Darkvater and Hackykid for
network testing and Tron for proof-reading 1500 lines of diff.
Diffstat (limited to 'ai_build.c')
-rw-r--r-- | ai_build.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ai_build.c b/ai_build.c index f53d7793f..e4dcf42cd 100644 --- a/ai_build.c +++ b/ai_build.c @@ -5,6 +5,7 @@ #include "command.h" #include "ai.h" #include "engine.h" +#include "station.h" // Build HQ // Params: @@ -28,9 +29,9 @@ int AiNew_Build_Station(Player *p, byte type, uint tile, byte length, byte numtr if (type == AI_TRAIN) return DoCommandByTile(tile, direction + (numtracks << 8) + (length << 16), 0, flag | DC_AUTO | DC_NO_WATER, CMD_BUILD_RAILROAD_STATION); else if (type == AI_BUS) - return DoCommandByTile(tile, direction, 0, flag | DC_AUTO | DC_NO_WATER, CMD_BUILD_BUS_STATION); + return DoCommandByTile(tile, direction, RS_BUS, flag | DC_AUTO | DC_NO_WATER, CMD_BUILD_ROAD_STOP); else - return DoCommandByTile(tile, direction, 0, flag | DC_AUTO | DC_NO_WATER, CMD_BUILD_TRUCK_STATION); + return DoCommandByTile(tile, direction, RS_TRUCK, flag | DC_AUTO | DC_NO_WATER, CMD_BUILD_ROAD_STOP); } // Builds a brdige. The second best out of the ones available for this player |