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

Function ChangeLight

Source/lighting.cpp:1101–1115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1099}
1100
1101void ChangeLight(int i, int x, int y, int r)
1102{
1103 if (lightflag || i == -1) {
1104 return;
1105 }
1106
1107 LightList[i]._lunflag = 1;
1108 LightList[i]._lunx = LightList[i]._lx;
1109 LightList[i]._luny = LightList[i]._ly;
1110 LightList[i]._lunr = LightList[i]._lradius;
1111 LightList[i]._lx = x;
1112 LightList[i]._ly = y;
1113 LightList[i]._lradius = r;
1114 dolighting = TRUE;
1115}
1116
1117void ProcessLightList()
1118{

Callers 15

MI_LArrowFunction · 0.85
MI_FireboltFunction · 0.85
MI_FirewallFunction · 0.85
MI_FireballFunction · 0.85
MI_TownFunction · 0.85
MI_FiremoveFunction · 0.85
MI_GuardianFunction · 0.85
MI_WeapexpFunction · 0.85
MI_MisexpFunction · 0.85
MI_FlameFunction · 0.85
MI_CboltFunction · 0.85
MI_HboltFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected