aboutsummaryrefslogtreecommitdiff
path: root/src/game/Player.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/Player.cpp')
-rw-r--r--src/game/Player.cpp24
1 files changed, 2 insertions, 22 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index c1b97530320..8e7c4762270 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -556,25 +556,6 @@ bool Player::Create( uint32 guidlow, const std::string& name, uint8 race, uint8
uint8 powertype = cEntry->powerType;
- //uint32 unitfield;
-
- /*switch(powertype)
- {
- case POWER_ENERGY:
- case POWER_MANA:
- unitfield = 0x00000000;
- break;
- case POWER_RAGE:
- unitfield = 0x00110000;
- break;
- case POWER_RUNIC_POWER:
- unitfield = 0x0000EE00; //TODO: find correct unitfield here
- break;
- default:
- sLog.outError("Invalid default powertype %u for player (class %u)",powertype,class_);
- return false;
- }*/
-
SetFloatValue(UNIT_FIELD_BOUNDINGRADIUS, DEFAULT_WORLD_OBJECT_SIZE);
SetFloatValue(UNIT_FIELD_COMBATREACH, 1.5f);
@@ -599,7 +580,6 @@ bool Player::Create( uint32 guidlow, const std::string& name, uint8 race, uint8
uint32 RaceClassGender = ( race ) | ( class_ << 8 ) | ( gender << 16 );
SetUInt32Value(UNIT_FIELD_BYTES_0, ( RaceClassGender | ( powertype << 24 ) ) );
- //SetUInt32Value(UNIT_FIELD_BYTES_1, unitfield);
SetByteFlag(UNIT_FIELD_BYTES_2, 1, UNIT_BYTE2_FLAG_PVP );
SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_PVP_ATTACKABLE );
SetFlag(UNIT_FIELD_FLAGS_2, UNIT_FLAG2_REGENERATE_POWER);
@@ -19930,9 +19910,9 @@ void Player::InitGlyphsForLevel()
if(level >= 15)
value |= (0x01 | 0x02);
if(level >= 30)
- value |= 0x04;
- if(level >= 50)
value |= 0x08;
+ if(level >= 50)
+ value |= 0x04;
if(level >= 70)
value |= 0x10;
if(level >= 80)