mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-22 05:32:26 +00:00
Remove some unnecessary this == null checks
This commit is contained in:
parent
a307747c29
commit
945ca1278c
@ -262,9 +262,6 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
ServerPacket* Copy() {
|
ServerPacket* Copy() {
|
||||||
if (this == 0) {
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
ServerPacket* ret = new ServerPacket(this->opcode, this->size);
|
ServerPacket* ret = new ServerPacket(this->opcode, this->size);
|
||||||
if (this->size)
|
if (this->size)
|
||||||
memcpy(ret->pBuffer, this->pBuffer, this->size);
|
memcpy(ret->pBuffer, this->pBuffer, this->size);
|
||||||
|
|||||||
@ -624,8 +624,7 @@ public:
|
|||||||
|
|
||||||
//AI
|
//AI
|
||||||
static uint32 GetLevelCon(uint8 mylevel, uint8 iOtherLevel);
|
static uint32 GetLevelCon(uint8 mylevel, uint8 iOtherLevel);
|
||||||
inline uint32 GetLevelCon(uint8 iOtherLevel) const {
|
inline uint32 GetLevelCon(uint8 iOtherLevel) const { return GetLevelCon(GetLevel(), iOtherLevel); }
|
||||||
return this ? GetLevelCon(GetLevel(), iOtherLevel) : CON_GRAY; }
|
|
||||||
virtual void AddToHateList(Mob* other, uint32 hate = 0, int32 damage = 0, bool iYellForHelp = true,
|
virtual void AddToHateList(Mob* other, uint32 hate = 0, int32 damage = 0, bool iYellForHelp = true,
|
||||||
bool bFrenzy = false, bool iBuffTic = false, uint16 spell_id = SPELL_UNKNOWN, bool pet_comand = false);
|
bool bFrenzy = false, bool iBuffTic = false, uint16 spell_id = SPELL_UNKNOWN, bool pet_comand = false);
|
||||||
bool RemoveFromHateList(Mob* mob);
|
bool RemoveFromHateList(Mob* mob);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user