titleprefix fix

This commit is contained in:
kremsy
2014-03-12 13:07:02 +01:00
committed by Steffen Schröder
parent 49805f06b3
commit dbdc318bba
9 changed files with 36 additions and 43 deletions

View File

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