MCPcopy Create free account
hub / github.com/diasurgical/devilution / ChangeVisionXY

Function ChangeVisionXY

Source/lighting.cpp:1213–1228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1211}
1212
1213void ChangeVisionXY(int id, int x, int y)
1214{
1215 int i;
1216
1217 for (i = 0; i < numvision; i++) {
1218 if (VisionList[i]._lid == id) {
1219 VisionList[i]._lunflag = 1;
1220 VisionList[i]._lunx = VisionList[i]._lx;
1221 VisionList[i]._luny = VisionList[i]._ly;
1222 VisionList[i]._lunr = VisionList[i]._lradius;
1223 VisionList[i]._lx = x;
1224 VisionList[i]._ly = y;
1225 dovision = TRUE;
1226 }
1227 }
1228}
1229
1230void ProcessVisionList()
1231{

Callers 5

RedoPlayerVisionFunction · 0.85
MI_TeleportFunction · 0.85
PM_DoWalkFunction · 0.85
PM_DoWalk2Function · 0.85
PM_DoWalk3Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected