From 9cd0c6e6a0cc3598b73ba1a72ee9aad65ec57059 Mon Sep 17 00:00:00 2001 From: plagman Date: Sun, 7 Jun 2009 13:17:55 +0000 Subject: [PATCH] Re-hooks pr_lighting. git-svn-id: https://svn.eduke32.com/eduke32@1417 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/polymer.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/polymer/eduke32/build/src/polymer.c b/polymer/eduke32/build/src/polymer.c index af1b368e5..4d6650950 100644 --- a/polymer/eduke32/build/src/polymer.c +++ b/polymer/eduke32/build/src/polymer.c @@ -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);