mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[7761] GuildBankTabPrice vector is replaced by an array.
Arrays are significantly faster. Signed-off-by: AlexDereka <dereka.alex@gmail.com>
This commit is contained in:
parent
c9eb417515
commit
20ffd7f421
6 changed files with 11 additions and 16 deletions
|
|
@ -694,8 +694,6 @@ class ObjectMgr
|
|||
|
||||
int GetIndexForLocale(LocaleConstant loc);
|
||||
LocaleConstant GetLocaleForIndex(int i);
|
||||
// guild bank tabs
|
||||
uint32 GetGuildBankTabPrice(uint8 Index) const { return Index < GUILD_BANK_MAX_TABS ? mGuildBankTabPrice[Index] : 0; }
|
||||
|
||||
uint16 GetConditionId(ConditionType condition, uint32 value1, uint32 value2);
|
||||
bool IsPlayerMeetToCondition(Player const* player, uint16 condition_id) const
|
||||
|
|
@ -862,9 +860,6 @@ class ObjectMgr
|
|||
RespawnTimes mCreatureRespawnTimes;
|
||||
RespawnTimes mGORespawnTimes;
|
||||
|
||||
typedef std::vector<uint32> GuildBankTabPriceMap;
|
||||
GuildBankTabPriceMap mGuildBankTabPrice;
|
||||
|
||||
// Storage for Conditions. First element (index 0) is reserved for zero-condition (nothing required)
|
||||
typedef std::vector<PlayerCondition> ConditionStore;
|
||||
ConditionStore mConditions;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue