titleprefix fix
This commit is contained in:
committed by
Steffen Schröder
parent
49805f06b3
commit
dbdc318bba
@ -170,12 +170,8 @@ class ActionsMenu implements CallbackListener, ManialinkPageAnswerListener {
|
||||
$itemMarginFactorX = 1.3;
|
||||
$itemMarginFactorY = 1.2;
|
||||
|
||||
// Get Title Id
|
||||
$titleId = $this->maniaControl->server->titleId;
|
||||
$titlePrefix = strtoupper(substr($titleId, 0, 2));
|
||||
|
||||
//If game is shootmania lower the icons position by 20
|
||||
if($titlePrefix == 'SM') {
|
||||
if ($this->maniaControl->mapManager->getCurrentMap()->getGame() == 'sm') {
|
||||
$posY -= $shootManiaOffset;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user