equal
deleted
inserted
replaced
75 // There is only one bridge that can be built |
75 // There is only one bridge that can be built |
76 if (type2 == 0 && type != 0) type2 = type; |
76 if (type2 == 0 && type != 0) type2 = type; |
77 |
77 |
78 // Now, simply, build the bridge! |
78 // Now, simply, build the bridge! |
79 if (_players_ainew[p->index].tbt == AI_TRAIN) { |
79 if (_players_ainew[p->index].tbt == AI_TRAIN) { |
80 return AI_DoCommand(tile_a, tile_b, (0x00 << 8) + type2, flag | DC_AUTO, CMD_BUILD_BRIDGE); |
80 return AI_DoCommand(tile_a, tile_b, type2 | RAILTYPE_RAIL << 8 | TRANSPORT_RAIL << 15, flag | DC_AUTO, CMD_BUILD_BRIDGE); |
81 } else { |
81 } else { |
82 return AI_DoCommand(tile_a, tile_b, ((0x80 | ROADTYPES_ROAD) << 8) + type2, flag | DC_AUTO, CMD_BUILD_BRIDGE); |
82 return AI_DoCommand(tile_a, tile_b, type2 | ROADTYPES_ROAD << 8 | TRANSPORT_ROAD << 15, flag | DC_AUTO, CMD_BUILD_BRIDGE); |
83 } |
83 } |
84 } |
84 } |
85 |
85 |
86 |
86 |
87 // Build the route part by part |
87 // Build the route part by part |