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
This commit is contained in:
helixhorned 2011-12-30 22:17:29 +00:00
parent afbffe5c4a
commit 9a7bdfa76c

View file

@ -347,9 +347,12 @@ defstate fiddlewithlights
ifeithershift set j 10 ifeithershift set j 10
else ifeitherctrl set j 1000 else ifeitherctrl set j 1000
else set j 100 else set j 100
ifhitkey KEY_KP9 add .hitag j
else ifhitkey KEY_KP7 sub .hitag j set k .hitag
clamp .hitag 0 16000 ifhitkey KEY_KP9 add k j
else ifhitkey KEY_KP7 sub k j
clamp k 0 32767
set .hitag k
// min/max shade // min/max shade
ifeithershift set j -1 else set j 1 ifeithershift set j -1 else set j 1