GAMEMAN->GetStepsTypeInfo -> GameManager::GetStepsTypeInfo to allow Lua to call before GameManager singleton is initialized
This commit is contained in:
@@ -43,7 +43,7 @@ XNode* TrailID::CreateNode() const
|
||||
{
|
||||
XNode* pNode = new XNode( "Trail" );
|
||||
|
||||
pNode->AppendAttr( "StepsType", GAMEMAN->GetStepsTypeInfo(st).szName );
|
||||
pNode->AppendAttr( "StepsType", GameManager::GetStepsTypeInfo(st).szName );
|
||||
pNode->AppendAttr( "CourseDifficulty", DifficultyToString(cd) );
|
||||
|
||||
return pNode;
|
||||
@@ -65,7 +65,7 @@ void TrailID::LoadFromNode( const XNode* pNode )
|
||||
|
||||
RString TrailID::ToString() const
|
||||
{
|
||||
RString s = GAMEMAN->GetStepsTypeInfo(st).szName;
|
||||
RString s = GameManager::GetStepsTypeInfo(st).szName;
|
||||
s += " " + DifficultyToString( cd );
|
||||
return s;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user