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

@ -641,12 +641,8 @@ class CustomVotesPlugin implements CommandListener, CallbackListener, ManialinkP
$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;
}