equal
deleted
inserted
replaced
40 { |
40 { |
41 if (type == AI_TRAIN) |
41 if (type == AI_TRAIN) |
42 return AI_DoCommand(tile, direction + (numtracks << 8) + (length << 16), 0, flag | DC_AUTO | DC_NO_WATER, CMD_BUILD_RAILROAD_STATION); |
42 return AI_DoCommand(tile, direction + (numtracks << 8) + (length << 16), 0, flag | DC_AUTO | DC_NO_WATER, CMD_BUILD_RAILROAD_STATION); |
43 |
43 |
44 if (type == AI_BUS) |
44 if (type == AI_BUS) |
45 return AI_DoCommand(tile, direction, RS_BUS, flag | DC_AUTO | DC_NO_WATER, CMD_BUILD_ROAD_STOP); |
45 return AI_DoCommand(tile, direction, RoadStop::BUS, flag | DC_AUTO | DC_NO_WATER, CMD_BUILD_ROAD_STOP); |
46 |
46 |
47 return AI_DoCommand(tile, direction, RS_TRUCK, flag | DC_AUTO | DC_NO_WATER, CMD_BUILD_ROAD_STOP); |
47 return AI_DoCommand(tile, direction, RoadStop::TRUCK, flag | DC_AUTO | DC_NO_WATER, CMD_BUILD_ROAD_STOP); |
48 } |
48 } |
49 |
49 |
50 |
50 |
51 // Builds a brdige. The second best out of the ones available for this player |
51 // Builds a brdige. The second best out of the ones available for this player |
52 // Params: |
52 // Params: |