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

Function ChangeLightOff

Source/lighting.cpp:1086–1099  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1084}
1085
1086void ChangeLightOff(int i, int x, int y)
1087{
1088 if (lightflag || i == -1) {
1089 return;
1090 }
1091
1092 LightList[i]._lunflag = 1;
1093 LightList[i]._lunx = LightList[i]._lx;
1094 LightList[i]._luny = LightList[i]._ly;
1095 LightList[i]._lunr = LightList[i]._lradius;
1096 LightList[i]._xoff = x;
1097 LightList[i]._yoff = y;
1098 dolighting = TRUE;
1099}
1100
1101void ChangeLight(int i, int x, int y, int r)
1102{

Callers 6

M_ChangeLightOffsetFunction · 0.85
GetMissilePosFunction · 0.85
PM_ChangeLightOffFunction · 0.85
PM_DoWalkFunction · 0.85
PM_DoWalk2Function · 0.85
PM_DoWalk3Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected