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
1 changed files with 3 additions and 0 deletions

View File

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