[7020] Initilize glyph order at loading/reset.

This must fix problems with glyph use for old(converted) characters.
Thanks to GriffonHeart for porblem research.
This commit is contained in:
VladimirMangos 2009-01-04 18:41:20 +03:00
parent 39c1f547f6
commit 977cb3f8d4
2 changed files with 6 additions and 8 deletions

View file

@ -594,13 +594,6 @@ bool Player::Create( uint32 guidlow, const std::string& name, uint8 race, uint8
SetUInt32Value( PLAYER_FIELD_TODAY_CONTRIBUTION, 0 ); SetUInt32Value( PLAYER_FIELD_TODAY_CONTRIBUTION, 0 );
SetUInt32Value( PLAYER_FIELD_YESTERDAY_CONTRIBUTION, 0 ); SetUInt32Value( PLAYER_FIELD_YESTERDAY_CONTRIBUTION, 0 );
for(uint32 i = 0; i < sGlyphSlotStore.GetNumRows(); ++i)
{
GlyphSlotEntry const * gs = sGlyphSlotStore.LookupEntry(i);
if(gs && gs->Order)
SetGlyphSlot(gs->Order - 1, gs->Id);
}
// set starting level // set starting level
uint32 start_level = getClass() != CLASS_DEATH_KNIGHT uint32 start_level = getClass() != CLASS_DEATH_KNIGHT
? sWorld.getConfig(CONFIG_START_PLAYER_LEVEL) ? sWorld.getConfig(CONFIG_START_PLAYER_LEVEL)
@ -18943,6 +18936,11 @@ uint32 Player::GetBarberShopCost(uint8 newhairstyle, uint8 newhaircolor, uint8 n
void Player::InitGlyphsForLevel() void Player::InitGlyphsForLevel()
{ {
for(uint32 i = 0; i < sGlyphSlotStore.GetNumRows(); ++i)
if(GlyphSlotEntry const * gs = sGlyphSlotStore.LookupEntry(i))
if(gs->Order)
SetGlyphSlot(gs->Order - 1, gs->Id);
uint32 level = getLevel(); uint32 level = getLevel();
uint32 value = 0; uint32 value = 0;

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "7019" #define REVISION_NR "7020"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__