MCPcopy Create free account
hub / github.com/diasurgical/DevilutionX / DoVisionFlags

Function DoVisionFlags

Source/lighting.cpp:147–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145}
146
147void DoVisionFlags(Point position, MapExplorationType doAutomap, bool visible)
148{
149 if (doAutomap != MAP_EXP_NONE) {
150 if (dFlags[position.x][position.y] != DungeonFlag::None)
151 SetAutomapView(position, doAutomap);
152 dFlags[position.x][position.y] |= DungeonFlag::Explored;
153 }
154 if (visible)
155 dFlags[position.x][position.y] |= DungeonFlag::Lit;
156 dFlags[position.x][position.y] |= DungeonFlag::Visible;
157}
158
159} // namespace
160

Callers 1

DoVisionFunction · 0.85

Calls 1

SetAutomapViewFunction · 0.85

Tested by

no test coverage detected