Temporary workaround for Trackmania Manialink bug
This commit is contained in:
parent
a95f93c4a8
commit
58072861c3
@ -161,6 +161,13 @@ class StyleManager {
|
|||||||
$frame = new Frame();
|
$frame = new Frame();
|
||||||
$frame->setSize($width, $height)->setZ(45); //TODO place before scoreboards
|
$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
|
// Background Quad
|
||||||
$backgroundQuad = new Quad();
|
$backgroundQuad = new Quad();
|
||||||
$frame->add($backgroundQuad);
|
$frame->add($backgroundQuad);
|
||||||
|
Loading…
Reference in New Issue
Block a user