summaryrefslogtreecommitdiff
path: root/npc/functions/math.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-08-18 01:26:39 -0300
committerJesusaves <cpntb1@ymail.com>2019-08-18 01:26:39 -0300
commit960dee60bbd65262c951bfed1f8eea067d26a35f (patch)
tree653d0a3277ebbd4eceb9f093e2fdc364b1515e50 /npc/functions/math.txt
parent7e6b82f9ee252e862e551493dc0836b0d98047f0 (diff)
downloadserverdata-960dee60bbd65262c951bfed1f8eea067d26a35f.tar.gz
serverdata-960dee60bbd65262c951bfed1f8eea067d26a35f.tar.bz2
serverdata-960dee60bbd65262c951bfed1f8eea067d26a35f.tar.xz
serverdata-960dee60bbd65262c951bfed1f8eea067d26a35f.zip
Minor improvements and corrections. This allows sieges to keep happening until
the Fortress is sieged itself.
Diffstat (limited to 'npc/functions/math.txt')
-rw-r--r--npc/functions/math.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/npc/functions/math.txt b/npc/functions/math.txt
index 068d46cba..fc27bec40 100644
--- a/npc/functions/math.txt
+++ b/npc/functions/math.txt
@@ -73,7 +73,9 @@ function script log2 {
// is_between ( lower, higher, target)
function script is_between {
.@val=getarg(2);
- return (getarg(0) < .@val && getarg(1) >= .@val);
+ .@min=getarg(0);
+ .@max=getarg(1);
+ return (.@min < .@val && .@val <= .@max);
}