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

Function ToggleLighting

Source/lighting.cpp:981–997  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

979
980#ifdef _DEBUG
981void ToggleLighting()
982{
983 int i;
984
985 lightflag ^= TRUE;
986
987 if (lightflag) {
988 memset(dLight, 0, sizeof(dLight));
989 } else {
990 memcpy(dLight, dPreLight, sizeof(dLight));
991 for (i = 0; i < MAX_PLRS; i++) {
992 if (plr[i].plractive && plr[i].plrlevel == currlevel) {
993 DoLighting(plr[i].WorldX, plr[i].WorldY, plr[i]._pLightRad, -1);
994 }
995 }
996 }
997}
998#endif
999
1000void InitLightMax()

Callers 1

PressCharFunction · 0.85

Calls 1

DoLightingFunction · 0.85

Tested by

no test coverage detected