src/ai/trolly/build.cpp
changeset 5836 a60d2114780e
parent 5584 1111b4d36e35
child 6491 00dc414c909d
equal deleted inserted replaced
5835:7ef65a4a70ef 5836:a60d2114780e
    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: