Core: Fixed warnings:
C4100: 'variable' : unreferenced formal parameter C4701: potentially uninitialized local variable C4389: '!=' : signed/unsigned mismatch C4245: 'argument' : conversion from 'X' to 'Y', signed/unsigned mismatch
This commit is contained in:
@@ -1549,7 +1549,7 @@ void Creature::setDeathState(DeathState s)
|
||||
if (GetCreatureInfo()->InhabitType & INHABIT_WATER)
|
||||
AddUnitMovementFlag(MOVEMENTFLAG_SWIMMING);
|
||||
SetUInt32Value(UNIT_NPC_FLAGS, cinfo->npcflag);
|
||||
ClearUnitState(UNIT_STAT_ALL_STATE);
|
||||
ClearUnitState(uint32(UNIT_STAT_ALL_STATE));
|
||||
SetMeleeDamageSchool(SpellSchools(cinfo->dmgschool));
|
||||
LoadCreaturesAddon(true);
|
||||
Motion_Initialize();
|
||||
@@ -1612,7 +1612,7 @@ void Creature::Respawn(bool force)
|
||||
{
|
||||
setDeathState(JUST_DIED);
|
||||
i_motionMaster.Clear();
|
||||
ClearUnitState(UNIT_STAT_ALL_STATE);
|
||||
ClearUnitState(uint32(UNIT_STAT_ALL_STATE));
|
||||
LoadCreaturesAddon(true);
|
||||
}
|
||||
else
|
||||
|
||||
@@ -2555,7 +2555,7 @@ void Player::SetGameMaster(bool on)
|
||||
getHostileRefManager().setOnlineOfflineState(false);
|
||||
CombatStopWithPets();
|
||||
|
||||
SetPhaseMask(PHASEMASK_ANYWHERE, false); // see and visible in all phases
|
||||
SetPhaseMask(uint32(PHASEMASK_ANYWHERE), false); // see and visible in all phases
|
||||
m_serverSideVisibilityDetect.SetValue(SERVERSIDE_VISIBILITY_GM, GetSession()->GetSecurity());
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user