add default character so Rave/Battle is playable without character models

This commit is contained in:
Chris Danford
2003-09-25 04:22:51 +00:00
parent dbb2527fcb
commit 4414561fe6
10 changed files with 83 additions and 38 deletions
+9 -1
View File
@@ -52,7 +52,15 @@ CString GetRandomFileInDir( CString sDir )
}
CString Character::GetModelPath() { return m_sCharDir + "model.txt"; }
CString Character::GetModelPath()
{
CString s = m_sCharDir + "model.txt";
if( DoesFileExist(s) )
return s;
else
return "";
}
CString Character::GetRestAnimationPath() { return DerefRedir(GetRandomFileInDir(m_sCharDir + "Rest" SLASH)); }
CString Character::GetWarmUpAnimationPath() { return DerefRedir(GetRandomFileInDir(m_sCharDir + "WarmUp" SLASH)); }
CString Character::GetDanceAnimationPath() { return DerefRedir(GetRandomFileInDir(m_sCharDir + "Dance" SLASH)); }