summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
Diffstat (limited to 'includes')
-rw-r--r--includes/wot.inc.php5
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;