From 9a7bdfa76c1451d0120cc312464d177916771527 Mon Sep 17 00:00:00 2001 From: helixhorned Date: Fri, 30 Dec 2011 22:17:29 +0000 Subject: [PATCH] a.m32 light hotkeys: clamp hitag (range) to 0..32767 instead of 0..16000 git-svn-id: https://svn.eduke32.com/eduke32@2227 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/samples/a.m32 | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/polymer/eduke32/samples/a.m32 b/polymer/eduke32/samples/a.m32 index d5f564253..f6281787c 100644 --- a/polymer/eduke32/samples/a.m32 +++ b/polymer/eduke32/samples/a.m32 @@ -347,9 +347,12 @@ defstate fiddlewithlights ifeithershift set j 10 else ifeitherctrl set j 1000 else set j 100 - ifhitkey KEY_KP9 add .hitag j - else ifhitkey KEY_KP7 sub .hitag j - clamp .hitag 0 16000 + + set k .hitag + ifhitkey KEY_KP9 add k j + else ifhitkey KEY_KP7 sub k j + clamp k 0 32767 + set .hitag k // min/max shade ifeithershift set j -1 else set j 1