1
0

Fixed the sound issue with the MagmaCube

-Name of the sound is correctly capitalized

-Get the appropriate sound depending on its size
This commit is contained in:
Tri125
2015-05-06 23:12:17 -04:00
parent 69ec6e105f
commit 63af47832d
2 changed files with 16 additions and 2 deletions

View File

@@ -7,7 +7,7 @@
cMagmaCube::cMagmaCube(int a_Size) :
super("MagmaCube", mtMagmaCube, "mob.MagmaCube.big", "mob.MagmaCube.big", 0.6 * a_Size, 0.6 * a_Size),
super("MagmaCube", mtMagmaCube, Printf("mob.magmacube.%s", GetSizeName(a_Size).c_str()), Printf("mob.magmacube.%s", GetSizeName(a_Size).c_str()), 0.6 * a_Size, 0.6 * a_Size),
m_Size(a_Size)
{
}
@@ -27,4 +27,14 @@ void cMagmaCube::GetDrops(cItems & a_Drops, cEntity * a_Killer)
const AString cMagmaCube::GetSizeName(int a_Size) const
{
if (a_Size > 1)
{
return "big";
}
else
{
return "small";
}
}