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
This commit is contained in:
plagman 2009-06-07 12:57:46 +00:00
parent a8cd07d692
commit 1bf169aefe

View file

@ -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)
{