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

Function enable_updates_at

plugins/steam-engine.cpp:96–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94};
95
96void enable_updates_at(df::coord pos, bool flow, bool temp)
97{
98 static const int delta[4][2] = { { -1, -1 }, { 1, -1 }, { -1, 1 }, { 1, 1 } };
99
100 for (int i = 0; i < 4; i++)
101 {
102 auto blk = Maps::getTileBlock(pos.x+delta[i][0], pos.y+delta[i][1], pos.z);
103 Maps::enableBlockUpdates(blk, flow, temp);
104 }
105}
106
107void decrement_flow(df::coord pos, int amount)
108{

Callers 2

decrement_flowFunction · 0.85
absorb_unitMethod · 0.85

Calls 2

getTileBlockFunction · 0.85
enableBlockUpdatesFunction · 0.85

Tested by

no test coverage detected