MCPcopy Create free account
hub / github.com/SimHacker/micropolis / neutralizeRoad

Function neutralizeRoad

MicropolisCore/src/MicropolisEngine/src/connect.cpp:105–111  ·  view source on GitHub ↗

* Remove road from the tile. * @param tile Current tile value. * @return Equivalent tile without road. */

Source from the content-addressed store, hash-verified

103 * @return Equivalent tile without road.
104 */
105static inline MapTile neutralizeRoad(MapTile tile)
106{
107 if (tile >= 64 && tile <= 207) {
108 tile = (tile & 0x000F) + 64;
109 }
110 return tile;
111};
112
113/**
114 * Perform the command, and fix wire/road/rail/zone connections around it.

Callers 6

connectTileMethod · 0.85
layDozeMethod · 0.85
layRoadMethod · 0.85
layRailMethod · 0.85
layWireMethod · 0.85
fixSingleMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected