전투 버그 수정 중

This commit is contained in:
2019-10-06 02:49:54 +09:00
parent 5df66ede36
commit 46acfe9470
18 changed files with 40 additions and 27 deletions
+3
View File
@@ -438,6 +438,9 @@ class Util extends \utilphp\util
*/
public static function valueFit($value, $min = null, $max = null)
{
if($max !== null && $min !== null && $max < $min){
return $min;
}
if ($min !== null && $value < $min) {
return $min;
}