From 1bf169aefec7c136b4472489a9277fdb4da71d6c Mon Sep 17 00:00:00 2001 From: plagman Date: Sun, 7 Jun 2009 12:57:46 +0000 Subject: [PATCH] Don't try to add polymer lights if not running polymer. This prevents polymost/classic from crashing. git-svn-id: https://svn.eduke32.com/eduke32@1414 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/actors.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/polymer/eduke32/source/actors.c b/polymer/eduke32/source/actors.c index 94faf174f..2387b769d 100644 --- a/polymer/eduke32/source/actors.c +++ b/polymer/eduke32/source/actors.c @@ -588,6 +588,9 @@ static void ms(int32_t i) inline void G_AddGameLight(int32_t radius, int32_t srcsprite, int32_t zoffset, int32_t range, int32_t color, int32_t priority) { #ifdef POLYMER + if (rendmode != 4) + return; + spritetype *s = &sprite[srcsprite]; if (ActorExtra[srcsprite].lightptr == NULL) {