mirror of
https://github.com/mangosfour/server.git
synced 2025-12-19 13:37:01 +00:00
[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:
parent
39c1f547f6
commit
977cb3f8d4
2 changed files with 6 additions and 8 deletions
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue