Re-hooks pr_lighting.

git-svn-id: https://svn.eduke32.com/eduke32@1417 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
plagman 2009-06-07 13:17:55 +00:00
parent f30fdef695
commit 9cd0c6e6a0

View file

@ -1117,6 +1117,9 @@ int16_t polymer_addlight(_prlight* light)
{ {
int16_t lighti; int16_t lighti;
if (!pr_lighting)
return (-1);
if ((light->sector == -1) || (light->sector >= numsectors)) if ((light->sector == -1) || (light->sector >= numsectors))
return (-1); return (-1);