src/road_cmd.cpp
changeset 7763 342e5357b592
parent 7758 17ad53748c7b
child 7819 7c86b40382cd
equal deleted inserted replaced
7762:78449448addc 7763:342e5357b592
   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