MCPcopy Create free account
hub / github.com/DFHack/dfhack / is_warm

Function is_warm

plugins/dig.cpp:235–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233//
234
235static bool is_warm(const df::coord &pos) {
236 auto block = Maps::getTileBlock(pos);
237 if (!block)
238 return false;
239 return block->temperature_1[pos.x&15][pos.y&15] >= 10075;
240}
241
242static bool is_wall(const df::coord &pos) {
243 df::tiletype *tt = Maps::getTileType(pos);

Callers 3

unhide_taggedFunction · 0.85
paintScreenWarmDampFunction · 0.85

Calls 1

getTileBlockFunction · 0.85

Tested by

no test coverage detected