added between()

Added missing function from creature update.
This commit is contained in:
Lee 2020-12-29 17:36:16 +00:00
parent 1d68d013df
commit 06e864c954

View File

@ -1408,6 +1408,16 @@ function getCreatureImgPath($creature){
}
}
function between($x, $lim1, $lim2) {
if ($lim1 < $lim2) {
$lower = $lim1; $upper = $lim2;
}
else {
$lower = $lim2; $upper = $lim1;
}
return (($x >= $lower) && ($x <= $upper));
}
// validator functions
require_once LIBS . 'validator.php';
require_once SYSTEM . 'compat.php';