Fixed reference to "scopesens" in old "zoom" script, because it is a variable nowadays, and not command.

Bug is visible clearly after typing  "/zoom 1".
This commit is contained in:
aurhat
2014-02-11 21:33:53 +01:00
parent 9197de052f
commit b33b74c11c
+3 -3
View File
@@ -189,11 +189,11 @@ oldsens = $sensitivity
const zoom [
if (= $arg1 1) [
if (! (=f $sensitivity (scopesens))) [
if (! (=f $sensitivity $scopesens)) [
oldsens = $sensitivity
// avoid error if using 0.001 as sensitivity
newsens = (scopesens)
if (> (*f 1 1000) $newsens) [ if (< 1000 $newsens) [ sensitivity (scopesens) ] ]
newsens = $scopesens
if (> (*f 1 1000) $newsens) [ if (< 1000 $newsens) [ sensitivity $scopesens ] ]
setscope 1
]
] [ sensitivity $oldsens; setscope 0 ]