diff --git a/application/core/Maps/MapList.php b/application/core/Maps/MapList.php index 1dc5145c..0c9fdc02 100644 --- a/application/core/Maps/MapList.php +++ b/application/core/Maps/MapList.php @@ -426,8 +426,7 @@ class MapList implements ManialinkPageAnswerListener, CallbackListener { $votes = $karmaPlugin->getMapVotes($map); if (is_numeric($karma)) { if($this->maniaControl->settingManager->getSetting($karmaPlugin, $karmaPlugin::SETTING_NEWKARMA)) { - $endKarma = $karma; - + $karmaText = ' ' . round($karma * 100.) . '% (' . $votes['count'] . ')'; } else { $min = 0; $plus = 0; @@ -465,7 +464,7 @@ class MapList implements ManialinkPageAnswerListener, CallbackListener { $karmaLabel->setTextSize(0.9); $karmaLabel->setTextColor('000'); $karmaLabel->setAlign(Control::CENTER, Control::CENTER); - $karmaLabel->setText(' ' . $endKarma . ' (' . $votes['count'] . 'x / ' . round($karma * 100.) . '%)'); + $karmaLabel->setText($karmaText); } }