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

Method doRadTile

MicropolisCore/src/MicropolisEngine/src/simulate.cpp:1040–1045  ·  view source on GitHub ↗

* Handle decay of radio-active tile * @param pos Position of the radio-active tile. */

Source from the content-addressed store, hash-verified

1038 * @param pos Position of the radio-active tile.
1039 */
1040void Micropolis::doRadTile(const Position &pos)
1041{
1042 if ((getRandom16() & 4095) == 0) {
1043 map[pos.posX][pos.posY] = DIRT; /* Radioactive decay */
1044 }
1045}
1046
1047
1048/**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected