diff options
author | maximius <none@none> | 2009-11-01 17:53:07 -0800 |
---|---|---|
committer | maximius <none@none> | 2009-11-01 17:53:07 -0800 |
commit | b257a28fa9a9177df32845db8171d376bd6d4404 (patch) | |
tree | d1093029c66fc36a705aa0f344ba3a4fb77e36d5 /src/game/ObjectMgr.h | |
parent | 2b2b2a1d0ec0e8942b27047f6706f29775a00eb8 (diff) |
*Cleanup, fix many cases of unoptimized loops, potential crashes, excessively large data types, unnecessary or wrong casts, non-standardized function calls, and so on..
*Proper Maexxna Web Spray locations (old locations sent players flying into the air)
--HG--
branch : trunk
Diffstat (limited to 'src/game/ObjectMgr.h')
-rw-r--r-- | src/game/ObjectMgr.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/game/ObjectMgr.h b/src/game/ObjectMgr.h index ca47ff52ac1..6f6ca30cdeb 100644 --- a/src/game/ObjectMgr.h +++ b/src/game/ObjectMgr.h @@ -415,14 +415,14 @@ class ObjectMgr return sInstanceTemplate.LookupEntry<InstanceTemplate>(map); } - PetLevelInfo const* GetPetLevelInfo(uint32 creature_id, uint32 level) const; + PetLevelInfo const* GetPetLevelInfo(uint32 creature_id, uint8 level) const; PlayerClassInfo const* GetPlayerClassInfo(uint32 class_) const { if(class_ >= MAX_CLASSES) return NULL; return &playerClassInfo[class_]; } - void GetPlayerClassLevelInfo(uint32 class_,uint32 level, PlayerClassLevelInfo* info) const; + void GetPlayerClassLevelInfo(uint32 class_,uint8 level, PlayerClassLevelInfo* info) const; PlayerInfo const* GetPlayerInfo(uint32 race, uint32 class_) const { @@ -432,7 +432,7 @@ class ObjectMgr if(info->displayId_m==0 || info->displayId_f==0) return NULL; return info; } - void GetPlayerLevelInfo(uint32 race, uint32 class_,uint32 level, PlayerLevelInfo* info) const; + void GetPlayerLevelInfo(uint32 race, uint32 class_, uint8 level, PlayerLevelInfo* info) const; uint64 GetPlayerGUIDByName(std::string name) const; bool GetPlayerNameByGUID(const uint64 &guid, std::string &name) const; @@ -606,8 +606,8 @@ class ObjectMgr void LoadGMTickets(); std::string GeneratePetName(uint32 entry); - uint32 GetBaseXP(uint32 level); - uint32 GetXPForLevel(uint32 level); + uint32 GetBaseXP(uint8 level); + uint32 GetXPForLevel(uint8 level); int32 GetFishingBaseSkillLevel(uint32 entry) const { |