mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +00:00
[9529] Make Player::IsValidPos const
This commit is contained in:
parent
ca8454a3a4
commit
bbdb7bb09c
3 changed files with 4 additions and 4 deletions
|
|
@ -8830,7 +8830,7 @@ bool Player::IsBagPos( uint16 pos )
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Player::IsValidPos( uint8 bag, uint8 slot, bool explicit_pos )
|
bool Player::IsValidPos( uint8 bag, uint8 slot, bool explicit_pos ) const
|
||||||
{
|
{
|
||||||
// post selected
|
// post selected
|
||||||
if(bag == NULL_BAG && !explicit_pos)
|
if(bag == NULL_BAG && !explicit_pos)
|
||||||
|
|
|
||||||
|
|
@ -1166,8 +1166,8 @@ class MANGOS_DLL_SPEC Player : public Unit
|
||||||
static bool IsBagPos( uint16 pos );
|
static bool IsBagPos( uint16 pos );
|
||||||
static bool IsBankPos( uint16 pos ) { return IsBankPos(pos >> 8, pos & 255); }
|
static bool IsBankPos( uint16 pos ) { return IsBankPos(pos >> 8, pos & 255); }
|
||||||
static bool IsBankPos( uint8 bag, uint8 slot );
|
static bool IsBankPos( uint8 bag, uint8 slot );
|
||||||
bool IsValidPos( uint16 pos, bool explicit_pos ) { return IsValidPos(pos >> 8, pos & 255, explicit_pos); }
|
bool IsValidPos( uint16 pos, bool explicit_pos ) const { return IsValidPos(pos >> 8, pos & 255, explicit_pos); }
|
||||||
bool IsValidPos( uint8 bag, uint8 slot, bool explicit_pos );
|
bool IsValidPos( uint8 bag, uint8 slot, bool explicit_pos ) const;
|
||||||
uint8 GetBankBagSlotCount() const { return GetByteValue(PLAYER_BYTES_2, 2); }
|
uint8 GetBankBagSlotCount() const { return GetByteValue(PLAYER_BYTES_2, 2); }
|
||||||
void SetBankBagSlotCount(uint8 count) { SetByteValue(PLAYER_BYTES_2, 2, count); }
|
void SetBankBagSlotCount(uint8 count) { SetByteValue(PLAYER_BYTES_2, 2, count); }
|
||||||
bool HasItemCount( uint32 item, uint32 count, bool inBankAlso = false ) const;
|
bool HasItemCount( uint32 item, uint32 count, bool inBankAlso = false ) const;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "9528"
|
#define REVISION_NR "9529"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue