diff options
Diffstat (limited to 'includes/wot.inc.php')
-rw-r--r-- | includes/wot.inc.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/includes/wot.inc.php b/includes/wot.inc.php index 275b3a0..19c27a1 100644 --- a/includes/wot.inc.php +++ b/includes/wot.inc.php @@ -106,10 +106,7 @@ function calc_experience ($row,&$points,&$experience,&$sum_experience) { - if ($row['awarded'] < $row['points']) - $apoints += $row['points']; - else - $apoints += $row['awarded']; + $apoints = max($row['points'], $row['awarded']); $points += $apoints; |