added performance reports for long loops

This commit is contained in:
kremsy committed 2017-05-10 11:07:45 +02:00
1 parent 7b3d5e4659
commit 7c74baf9d2
5 files changed
+15 -4

No files matched your search

+1 -1
View File
@@ -323,7 +323,7 @@ class PlayerList implements ManialinkPageAnswerListener, CallbackListener, Timer
$playerQuad->addTooltipLabelFeature($descriptionLabel, $description);
}
if ($this->maniaControl->getServer()->isTeamMode()) {
if ($this->maniaControl->getServer()->getScriptManager()->modeIsTeamMode()) {
if ($this->maniaControl->getAuthenticationManager()->checkPermission($player, PlayerActions::SETTING_PERMISSION_FORCE_PLAYER_TEAM)) {
// Force to Red-Team Quad
$redQuad = new Quad_Emblems();