mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
포인트 퍼센트 값이 제대로 나타나도록 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6655 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
d6bb7e224d
commit
1ddb4cc79f
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue