From 478544acb618c6c2a56ab9ff44196fcaa8aeaf59 Mon Sep 17 00:00:00 2001 From: helixhorned Date: Sun, 7 Apr 2013 15:20:33 +0000 Subject: [PATCH] a.m32: Don't reposition head light if in void space, fixing crash. git-svn-id: https://svn.eduke32.com/eduke32@3651 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/package/samples/a.m32 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/polymer/eduke32/package/samples/a.m32 b/polymer/eduke32/package/samples/a.m32 index e6c04e941..3642270f1 100644 --- a/polymer/eduke32/package/samples/a.m32 +++ b/polymer/eduke32/package/samples/a.m32 @@ -1148,6 +1148,9 @@ defstate update_headlight ifvare headlight_enabled 0 break + ifvarl cursectnum 0 + break + ifvarn light[li].active 1 break