mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
[7730] Some optimizantion and code style.
Signed-off-by: AlexDereka <dereka.alex@gmail.com>
This commit is contained in:
parent
a4373c887d
commit
8144f30199
69 changed files with 536 additions and 536 deletions
|
|
@ -1348,7 +1348,7 @@ void Creature::LoadEquipment(uint32 equip_entry, bool force)
|
|||
{
|
||||
if (force)
|
||||
{
|
||||
for (uint8 i = 0; i < 3; i++)
|
||||
for (uint8 i = 0; i < 3; ++i)
|
||||
SetUInt32Value(UNIT_VIRTUAL_ITEM_SLOT_ID + i, 0);
|
||||
m_equipmentId = 0;
|
||||
}
|
||||
|
|
@ -1360,7 +1360,7 @@ void Creature::LoadEquipment(uint32 equip_entry, bool force)
|
|||
return;
|
||||
|
||||
m_equipmentId = equip_entry;
|
||||
for (uint8 i = 0; i < 3; i++)
|
||||
for (uint8 i = 0; i < 3; ++i)
|
||||
SetUInt32Value(UNIT_VIRTUAL_ITEM_SLOT_ID + i, einfo->equipentry[i]);
|
||||
}
|
||||
|
||||
|
|
@ -1555,7 +1555,7 @@ SpellEntry const *Creature::reachWithSpellAttack(Unit *pVictim)
|
|||
if(!pVictim)
|
||||
return NULL;
|
||||
|
||||
for(uint32 i=0; i < CREATURE_MAX_SPELLS; i++)
|
||||
for(uint32 i=0; i < CREATURE_MAX_SPELLS; ++i)
|
||||
{
|
||||
if(!m_spells[i])
|
||||
continue;
|
||||
|
|
@ -1607,7 +1607,7 @@ SpellEntry const *Creature::reachWithSpellCure(Unit *pVictim)
|
|||
if(!pVictim)
|
||||
return NULL;
|
||||
|
||||
for(uint32 i=0; i < CREATURE_MAX_SPELLS; i++)
|
||||
for(uint32 i=0; i < CREATURE_MAX_SPELLS; ++i)
|
||||
{
|
||||
if(!m_spells[i])
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue