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

Function ChangeLightRadius

Source/lighting.cpp:1057–1069  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1055}
1056
1057void ChangeLightRadius(int i, int r)
1058{
1059 if (lightflag || i == -1) {
1060 return;
1061 }
1062
1063 LightList[i]._lunflag = 1;
1064 LightList[i]._lunx = LightList[i]._lx;
1065 LightList[i]._luny = LightList[i]._ly;
1066 LightList[i]._lunr = LightList[i]._lradius;
1067 LightList[i]._lradius = r;
1068 dolighting = TRUE;
1069}
1070
1071void ChangeLightXY(int i, int x, int y)
1072{

Callers 2

Obj_FlameTrapFunction · 0.85
CalcPlrItemValsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected