diff options
author | frosch <frosch@openttd.org> | 2008-09-15 19:55:00 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2008-09-15 19:55:00 +0000 |
commit | e10127f032ebd6185279863f27264c355e8d2855 (patch) | |
tree | a924933099c6af82fb1144ddb37c19cc08b060e1 /src/ai/trolly | |
parent | e543181b120a4d0e80994166559b1ce7d7d45ce7 (diff) | |
download | openttd-e10127f032ebd6185279863f27264c355e8d2855.tar.xz |
(svn r14335) -Codechange: Remove some magic numbers.
Diffstat (limited to 'src/ai/trolly')
-rw-r--r-- | src/ai/trolly/build.cpp | 4 |
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); } } |