포인트 퍼센트 값이 제대로 나타나도록 수정

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6655 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
nicetwo 2009-06-23 08:47:04 +00:00
parent d6bb7e224d
commit 1ddb4cc79f

View file

@ -36,7 +36,8 @@
// 최고 레벨이 아니면 다음 레벨로 가기 위한 per을 구함
if($widget_info->level < $config->max_level) {
$next_point = $config->level_step[$widget_info->level+1];
if($next_point > 0) $per = (int)($widget_info->point / $next_point*100);
$present_point = $config->level_step[$widget_info->level];
if($next_point > 0) $per = (int)(($widget_info->point - $present_point) / ($next_point - $present_point)*100);
}
$widget_info->per = $per;
$widget_info->next_point = $next_point;