Fix incorrect sound for thrown weapons

This commit is contained in:
scrawl 2015-01-31 15:24:22 +01:00
parent 2346c3528d
commit 0497a40d09

View file

@ -189,9 +189,8 @@ namespace MWClass
{ {
return std::string("Item Weapon Longblade Up"); return std::string("Item Weapon Longblade Up");
} }
// Shortblade and thrown weapons // Shortblade
// thrown weapons may not be entirely correct if (type == 0)
if (type == 0 || type == 11)
{ {
return std::string("Item Weapon Shortblade Up"); return std::string("Item Weapon Shortblade Up");
} }
@ -200,8 +199,8 @@ namespace MWClass
{ {
return std::string("Item Weapon Spear Up"); return std::string("Item Weapon Spear Up");
} }
// Blunts and Axes // Blunts, Axes and Thrown weapons
if (type == 3 || type == 4 || type == 5 || type == 7 || type == 8) if (type == 3 || type == 4 || type == 5 || type == 7 || type == 8 || type == 11)
{ {
return std::string("Item Weapon Blunt Up"); return std::string("Item Weapon Blunt Up");
} }
@ -235,9 +234,8 @@ namespace MWClass
{ {
return std::string("Item Weapon Longblade Down"); return std::string("Item Weapon Longblade Down");
} }
// Shortblade and thrown weapons // Shortblade
// thrown weapons may not be entirely correct if (type == 0)
if (type == 0 || type == 11)
{ {
return std::string("Item Weapon Shortblade Down"); return std::string("Item Weapon Shortblade Down");
} }
@ -246,8 +244,8 @@ namespace MWClass
{ {
return std::string("Item Weapon Spear Down"); return std::string("Item Weapon Spear Down");
} }
// Blunts and Axes // Blunts, Axes and Thrown weapons
if (type == 3 || type == 4 || type == 5 || type == 7 || type == 8) if (type == 3 || type == 4 || type == 5 || type == 7 || type == 8 || type == 11)
{ {
return std::string("Item Weapon Blunt Down"); return std::string("Item Weapon Blunt Down");
} }