aboutsummaryrefslogtreecommitdiff
path: root/src/game/Player.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-05-28 18:43:57 -0500
committermegamage <none@none>2009-05-28 18:43:57 -0500
commit1288761fb704be6d3c24e8480a809f66200ddf04 (patch)
tree22c38f099195d31b39989a5e86e180cf233961bf /src/game/Player.cpp
parent451471d438e234698a91f15d63b17df3ec3327f4 (diff)
[7905] Implement ACTION_T_SET_SHEATH for creature event ai make possibility set ranged fire state. Author: VladimirMangos
Also related cleanup code in field cases and player Player::SetSheath. --HG-- branch : trunk
Diffstat (limited to 'src/game/Player.cpp')
-rw-r--r--src/game/Player.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index 111b4e1bd48..46975d18fa9 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -8188,7 +8188,7 @@ void Player::SetVirtualItemSlot( uint8 i, Item* item)
}
}
-void Player::SetSheath( uint32 sheathed )
+void Player::SetSheath( SheathState sheathed )
{
switch (sheathed)
{
@@ -8214,7 +8214,7 @@ void Player::SetSheath( uint32 sheathed )
SetVirtualItemSlot(2,NULL);
break;
}
- SetByteValue(UNIT_FIELD_BYTES_2, 0, sheathed); // this must visualize Sheath changing for other players...
+ Unit::SetSheath(sheathed); // this must visualize Sheath changing for other players...
}
uint8 Player::FindEquipSlot( ItemPrototype const* proto, uint32 slot, bool swap ) const