mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-27 01:39:22 +02:00
added between()
Added missing function from creature update.
This commit is contained in:
parent
1d68d013df
commit
06e864c954
@ -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
|
// validator functions
|
||||||
require_once LIBS . 'validator.php';
|
require_once LIBS . 'validator.php';
|
||||||
require_once SYSTEM . 'compat.php';
|
require_once SYSTEM . 'compat.php';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user