src/ai/trolly/trolly.cpp
changeset 8254 5de2bbd26163
parent 8141 c052dc0dc029
child 8259 127e5d73637d
equal deleted inserted replaced
8253:07efd7789987 8254:5de2bbd26163
  1109 			return;
  1109 			return;
  1110 		}
  1110 		}
  1111 	}
  1111 	}
  1112 
  1112 
  1113 	// There is a bus on the tile we want to build road on... idle till he is gone! (BAD PERSON! :p)
  1113 	// There is a bus on the tile we want to build road on... idle till he is gone! (BAD PERSON! :p)
  1114 	if (!EnsureNoVehicle(p->ainew.depot_tile + TileOffsByDiagDir(p->ainew.depot_direction)))
  1114 	if (!EnsureNoVehicleOnGround(p->ainew.depot_tile + TileOffsByDiagDir(p->ainew.depot_direction)))
  1115 		return;
  1115 		return;
  1116 
  1116 
  1117 	res = AiNew_Build_Depot(p, p->ainew.depot_tile, p->ainew.depot_direction, DC_EXEC);
  1117 	res = AiNew_Build_Depot(p, p->ainew.depot_tile, p->ainew.depot_direction, DC_EXEC);
  1118 	if (CmdFailed(res)) {
  1118 	if (CmdFailed(res)) {
  1119 		DEBUG(ai, 0, "[BuildDepot] depot could not be built (0x%X)", p->ainew.depot_tile);
  1119 		DEBUG(ai, 0, "[BuildDepot] depot could not be built (0x%X)", p->ainew.depot_tile);