aboutsummaryrefslogtreecommitdiff
path: root/src/game/GridNotifiersImpl.h
diff options
context:
space:
mode:
authormegamage <none@none>2008-11-29 13:08:23 -0600
committermegamage <none@none>2008-11-29 13:08:23 -0600
commit3d8d45c57a84538afbf716fc9304ea3207ea1948 (patch)
treed0dd806cae116e624bb6d999123c8dd70b411736 /src/game/GridNotifiersImpl.h
parentf2814351afa9c3b14eb6d055e655ccbb762589e2 (diff)
*Do unit relocation notification only once per update. Hope this can solve the stealth crash problem once for all.
--HG-- branch : trunk
Diffstat (limited to 'src/game/GridNotifiersImpl.h')
-rw-r--r--src/game/GridNotifiersImpl.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game/GridNotifiersImpl.h b/src/game/GridNotifiersImpl.h
index 41f7cc6c068..a4ad5a51bf7 100644
--- a/src/game/GridNotifiersImpl.h
+++ b/src/game/GridNotifiersImpl.h
@@ -101,7 +101,7 @@ Trinity::PlayerRelocationNotifier::Visit(CreatureMapType &m)
return;
for(CreatureMapType::iterator iter=m.begin(); iter != m.end(); ++iter)
- if( iter->getSource()->isAlive())
+ if( !iter->getSource()->m_Notified && iter->getSource()->isAlive())
PlayerCreatureRelocationWorker(&i_player,iter->getSource());
}
@@ -113,7 +113,7 @@ Trinity::CreatureRelocationNotifier::Visit(PlayerMapType &m)
return;
for(PlayerMapType::iterator iter=m.begin(); iter != m.end(); ++iter)
- if( iter->getSource()->isAlive() && !iter->getSource()->isInFlight())
+ if( !iter->getSource()->m_Notified && iter->getSource()->isAlive() && !iter->getSource()->isInFlight())
PlayerCreatureRelocationWorker(iter->getSource(), &i_creature);
}
@@ -127,7 +127,7 @@ Trinity::CreatureRelocationNotifier::Visit(CreatureMapType &m)
for(CreatureMapType::iterator iter=m.begin(); iter != m.end(); ++iter)
{
Creature* c = iter->getSource();
- if( c != &i_creature && c->isAlive())
+ if( !iter->getSource()->m_Notified && c != &i_creature && c->isAlive())
CreatureCreatureRelocationWorker(c, &i_creature);
}
}