summaryrefslogtreecommitdiff
path: root/src/ai/trolly
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-03-31 00:06:17 +0000
committerrubidium <rubidium@openttd.org>2008-03-31 00:06:17 +0000
commit2edd403656281f774e4a53251395b7b647a1c48b (patch)
treeeb3da2680e728750995c9c6d9df9bee5c7028211 /src/ai/trolly
parent4a1035ab95a994991b2ce802dbbd78f7dd6c0090 (diff)
downloadopenttd-2edd403656281f774e4a53251395b7b647a1c48b.tar.xz
(svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
Diffstat (limited to 'src/ai/trolly')
-rw-r--r--src/ai/trolly/build.cpp5
-rw-r--r--src/ai/trolly/trolly.cpp2
2 files changed, 3 insertions, 4 deletions
diff --git a/src/ai/trolly/build.cpp b/src/ai/trolly/build.cpp
index c6bf330e7..109b937aa 100644
--- a/src/ai/trolly/build.cpp
+++ b/src/ai/trolly/build.cpp
@@ -7,7 +7,6 @@
#include "../../command_func.h"
#include "trolly.h"
#include "../../engine.h"
-#include "../../station.h"
#include "../../variables.h"
#include "../../bridge.h"
#include "../../vehicle_func.h"
@@ -44,9 +43,9 @@ CommandCost AiNew_Build_Station(Player *p, byte type, TileIndex tile, byte lengt
return AI_DoCommand(tile, direction + (numtracks << 8) + (length << 16), 0, flag | DC_AUTO | DC_NO_WATER, CMD_BUILD_RAILROAD_STATION);
if (type == AI_BUS)
- return AI_DoCommand(tile, direction, ROADTYPES_ROAD << 2 | RoadStop::BUS, flag | DC_AUTO | DC_NO_WATER, CMD_BUILD_ROAD_STOP);
+ return AI_DoCommand(tile, direction, ROADTYPES_ROAD << 2 | ROADSTOP_BUS, flag | DC_AUTO | DC_NO_WATER, CMD_BUILD_ROAD_STOP);
- return AI_DoCommand(tile, direction, ROADTYPES_ROAD << 2 | RoadStop::TRUCK, flag | DC_AUTO | DC_NO_WATER, CMD_BUILD_ROAD_STOP);
+ return AI_DoCommand(tile, direction, ROADTYPES_ROAD << 2 | ROADSTOP_TRUCK, flag | DC_AUTO | DC_NO_WATER, CMD_BUILD_ROAD_STOP);
}
diff --git a/src/ai/trolly/trolly.cpp b/src/ai/trolly/trolly.cpp
index e06582e74..0d176dc14 100644
--- a/src/ai/trolly/trolly.cpp
+++ b/src/ai/trolly/trolly.cpp
@@ -26,7 +26,7 @@
#include "trolly.h"
#include "../../town.h"
#include "../../industry.h"
-#include "../../station.h"
+#include "../../station_base.h"
#include "../../engine.h"
#include "../../gui.h"
#include "../../depot.h"