Temporary workaround for Trackmania Manialink bug

This commit is contained in:
kremsy 2015-02-19 11:24:37 +01:00
parent a95f93c4a8
commit 58072861c3

View File

@ -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);