summaryrefslogtreecommitdiff
path: root/src/ai/trolly
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2008-09-15 19:55:00 +0000
committerfrosch <frosch@openttd.org>2008-09-15 19:55:00 +0000
commitbffc5717bcdf5a18e4f1db6db8b2bcebef560a52 (patch)
treea924933099c6af82fb1144ddb37c19cc08b060e1 /src/ai/trolly
parent1266b1a73f4197e3bf4d2cc0e09e9e667d7c640e (diff)
downloadopenttd-bffc5717bcdf5a18e4f1db6db8b2bcebef560a52.tar.xz
(svn r14335) -Codechange: Remove some magic numbers.
Diffstat (limited to 'src/ai/trolly')
-rw-r--r--src/ai/trolly/build.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ai/trolly/build.cpp b/src/ai/trolly/build.cpp
index cbb448dc9..ac35b0251 100644
--- a/src/ai/trolly/build.cpp
+++ b/src/ai/trolly/build.cpp
@@ -77,9 +77,9 @@ CommandCost AiNew_Build_Bridge(Player *p, TileIndex tile_a, TileIndex tile_b, by
// Now, simply, build the bridge!
if (_players_ainew[p->index].tbt == AI_TRAIN) {
- return AI_DoCommand(tile_a, tile_b, (0x00 << 8) + type2, flag | DC_AUTO, CMD_BUILD_BRIDGE);
+ return AI_DoCommand(tile_a, tile_b, type2 | RAILTYPE_RAIL << 8 | TRANSPORT_RAIL << 15, flag | DC_AUTO, CMD_BUILD_BRIDGE);
} else {
- return AI_DoCommand(tile_a, tile_b, ((0x80 | ROADTYPES_ROAD) << 8) + type2, flag | DC_AUTO, CMD_BUILD_BRIDGE);
+ return AI_DoCommand(tile_a, tile_b, type2 | ROADTYPES_ROAD << 8 | TRANSPORT_ROAD << 15, flag | DC_AUTO, CMD_BUILD_BRIDGE);
}
}