fix wolf collars
I don't know why this had an inversion but it consistently made the wrong collar color (i.e. yellow dye made the collar blue)
This commit is contained in:
parent
ef7c6ea7e7
commit
7a7cc1e66f
@ -18,7 +18,7 @@ cWolf::cWolf(void) :
|
|||||||
m_IsBegging(false),
|
m_IsBegging(false),
|
||||||
m_IsAngry(false),
|
m_IsAngry(false),
|
||||||
m_OwnerName(""),
|
m_OwnerName(""),
|
||||||
m_CollarColor(14)
|
m_CollarColor(E_META_DYE_ORANGE)
|
||||||
{
|
{
|
||||||
m_RelativeWalkSpeed = 2;
|
m_RelativeWalkSpeed = 2;
|
||||||
}
|
}
|
||||||
@ -124,7 +124,7 @@ void cWolf::OnRightClicked(cPlayer & a_Player)
|
|||||||
{
|
{
|
||||||
if (a_Player.GetName() == m_OwnerName) // Is the player the owner of the dog?
|
if (a_Player.GetName() == m_OwnerName) // Is the player the owner of the dog?
|
||||||
{
|
{
|
||||||
SetCollarColor(15 - a_Player.GetEquippedItem().m_ItemDamage);
|
SetCollarColor(a_Player.GetEquippedItem().m_ItemDamage);
|
||||||
if (!a_Player.IsGameModeCreative())
|
if (!a_Player.IsGameModeCreative())
|
||||||
{
|
{
|
||||||
a_Player.GetInventory().RemoveOneEquippedItem();
|
a_Player.GetInventory().RemoveOneEquippedItem();
|
||||||
|
Loading…
Reference in New Issue
Block a user