Core/Cleanup:
Mostly if(.. -> if (.. and for(.. -> for (.. but also some miscellaneous cleanup
This commit is contained in:
1 parent
38d5fbac0e
commit
49e24e2dfb
23 files changed
+63
-84
No files matched your search
@@ -787,20 +787,20 @@ void Map::RemoveCreatureFromMoveList(Creature* c)
|
||||
void Map::MoveAllCreaturesInMoveList()
|
||||
{
|
||||
_creatureToMoveLock = true;
|
||||
for(std::vector<Creature*>::iterator itr = _creaturesToMove.begin(); itr != _creaturesToMove.end(); ++itr)
|
||||
for (std::vector<Creature*>::iterator itr = _creaturesToMove.begin(); itr != _creaturesToMove.end(); ++itr)
|
||||
{
|
||||
Creature* c = *itr;
|
||||
if(c->FindMap() != this) //pet is teleported to another map
|
||||
if (c->FindMap() != this) //pet is teleported to another map
|
||||
continue;
|
||||
|
||||
if(c->_moveState != CREATURE_CELL_MOVE_ACTIVE)
|
||||
if (c->_moveState != CREATURE_CELL_MOVE_ACTIVE)
|
||||
{
|
||||
c->_moveState = CREATURE_CELL_MOVE_NONE;
|
||||
continue;
|
||||
}
|
||||
|
||||
c->_moveState = CREATURE_CELL_MOVE_NONE;
|
||||
if(!c->IsInWorld())
|
||||
if (!c->IsInWorld())
|
||||
continue;
|
||||
|
||||
// do move or do move to respawn or remove creature if previous all fail
|
||||
|
||||
Reference in new issue
Block a user