From bffc5717bcdf5a18e4f1db6db8b2bcebef560a52 Mon Sep 17 00:00:00 2001 From: frosch Date: Mon, 15 Sep 2008 19:55:00 +0000 Subject: (svn r14335) -Codechange: Remove some magic numbers. --- src/ai/trolly/build.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ai/trolly/build.cpp') 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); } } -- cgit v1.2.3-70-g09d2