removed unused variable

This commit is contained in:
Steffen Schröder 2014-06-14 14:37:09 +02:00
parent 9985b814d2
commit b1663303b0

View File

@ -397,15 +397,14 @@ class LocalRecordsPlugin implements CallbackListener, CommandListener, TimerList
// Check old record of the player // Check old record of the player
$oldRecord = $this->getLocalRecord($map, $callback->player); $oldRecord = $this->getLocalRecord($map, $callback->player);
$oldRank = -1;
if ($oldRecord) { if ($oldRecord) {
$oldRank = $oldRecord->rank;
if ($oldRecord->time < $callback->time) { if ($oldRecord->time < $callback->time) {
// Not improved // Not improved
return; return;
} }
if ($oldRecord->time == $callback->time) { if ($oldRecord->time == $callback->time) {
// Same time // Same time
// TODO: respect notify-settings
$message = '$<$fff' . $callback->player->nickname . '$> equalized his/her $<$ff0' . $oldRecord->rank . '.$> Local Record: $<$fff' . Formatter::formatTime($oldRecord->time) . '$>!'; $message = '$<$fff' . $callback->player->nickname . '$> equalized his/her $<$ff0' . $oldRecord->rank . '.$> Local Record: $<$fff' . Formatter::formatTime($oldRecord->time) . '$>!';
$this->maniaControl->chat->sendInformation('$3c0' . $message); $this->maniaControl->chat->sendInformation('$3c0' . $message);
return; return;