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

@ -50,7 +50,7 @@ class Map {
return;
}
$this->name = FORMATTER::stripDirtyCodes($mpMap->name);
$this->rawName = $mpMap->name;
$this->rawName = $mpMap->name;
$this->uid = $mpMap->uId;
$this->fileName = $mpMap->fileName;
$this->authorLogin = $mpMap->author;
@ -65,6 +65,24 @@ class Map {
$this->authorNick = $this->authorLogin;
}
/**
* Get's the gameType of the Current Map
*
* @return string
*/
public function getGame() {
switch($this->environment) {
case 'Storm':
return "sm";
case 'Canyon':
case 'Stadium':
case 'Valley':
return "tm";
default:
return "";
}
}
/**
* Checks if a map Update is available
*