src/road_cmd.cpp
changeset 8259 127e5d73637d
parent 8254 5de2bbd26163
child 8315 2d66a977506a
equal deleted inserted replaced
8258:e5ded58d6efb 8259:127e5d73637d
   364 		return CommandCost(); // no extra cost
   364 		return CommandCost(); // no extra cost
   365 	}
   365 	}
   366 
   366 
   367 	/* foundation is used. Whole tile is leveled up */
   367 	/* foundation is used. Whole tile is leveled up */
   368 	if ((~_valid_tileh_slopes_road[1][tileh] & road_bits) == ROAD_NONE) {
   368 	if ((~_valid_tileh_slopes_road[1][tileh] & road_bits) == ROAD_NONE) {
   369 		return CommandCost(existing != ROAD_NONE ? 0 : _price.terraform);
   369 		return CommandCost(existing != ROAD_NONE ? (Money)0 : _price.terraform);
   370 	}
   370 	}
   371 
   371 
   372 	/* Force straight roads. */
   372 	/* Force straight roads. */
   373 	*pieces |= MirrorRoadBits(*pieces);
   373 	*pieces |= MirrorRoadBits(*pieces);
   374 
   374