small fix
This commit is contained in:
parent
c7e46ff304
commit
dcadd1c1f6
@ -225,12 +225,11 @@ class PlayerDetailed {
|
||||
}
|
||||
|
||||
if ($statProperties->type == StatisticManager::STAT_TYPE_TIME) {
|
||||
$value = Formatter::formatTimeH($value);
|
||||
$value = Formatter::formatTimeHMS($value);
|
||||
} else if ($statProperties->type == StatisticManager::STAT_TYPE_FLOAT) {
|
||||
$value = round(floatval($value), 2);
|
||||
}
|
||||
|
||||
|
||||
if ($id % 2 != 0) {
|
||||
$lineQuad = new Quad_BgsPlayerCard();
|
||||
$frame->add($lineQuad);
|
||||
|
@ -390,6 +390,9 @@ class StatisticManager {
|
||||
if (!$statId) {
|
||||
return false;
|
||||
}
|
||||
if ($value < 1) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($serverIndex == -1) {
|
||||
$serverIndex = $this->maniaControl->server->index;
|
||||
|
Loading…
Reference in New Issue
Block a user