From 58072861c34cbdeeb8f410091c8be7b43d7c1226 Mon Sep 17 00:00:00 2001 From: kremsy Date: Thu, 19 Feb 2015 11:24:37 +0100 Subject: [PATCH] Temporary workaround for Trackmania Manialink bug --- core/Manialinks/StyleManager.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/core/Manialinks/StyleManager.php b/core/Manialinks/StyleManager.php index 74144cd9..7409067a 100644 --- a/core/Manialinks/StyleManager.php +++ b/core/Manialinks/StyleManager.php @@ -161,6 +161,13 @@ class StyleManager { $frame = new Frame(); $frame->setSize($width, $height)->setZ(45); //TODO place before scoreboards + //TODO remove: (just temporary fix for tm bug) + if ($this->maniaControl->getMapManager()->getCurrentMap()->getGame() === 'tm' + ) { + $frame->setSize($width, $height)->setZ(30); + } + + // Background Quad $backgroundQuad = new Quad(); $frame->add($backgroundQuad);