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

Function ChangeVisionRadius

Source/lighting.cpp:1197–1211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1195}
1196
1197void ChangeVisionRadius(int id, int r)
1198{
1199 int i;
1200
1201 for (i = 0; i < numvision; i++) {
1202 if (VisionList[i]._lid == id) {
1203 VisionList[i]._lunflag = 1;
1204 VisionList[i]._lunx = VisionList[i]._lx;
1205 VisionList[i]._luny = VisionList[i]._ly;
1206 VisionList[i]._lunr = VisionList[i]._lradius;
1207 VisionList[i]._lradius = r;
1208 dovision = TRUE;
1209 }
1210 }
1211}
1212
1213void ChangeVisionXY(int id, int x, int y)
1214{

Callers 1

CalcPlrItemValsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected