| 979 | |
| 980 | #ifdef _DEBUG |
| 981 | void 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 | |
| 1000 | void InitLightMax() |
no test coverage detected