diff options
author | QAston <none@none> | 2009-06-06 08:32:14 +0200 |
---|---|---|
committer | QAston <none@none> | 2009-06-06 08:32:14 +0200 |
commit | c99b74151727a081423c60d3f42f1bd6caf4cc7e (patch) | |
tree | 61d45f78cdd770e10a81c32a7f938e725b72d78d /src/game/GridNotifiers.cpp | |
parent | 8bc46785de9950218f791f9eb6efc598d1a97d29 (diff) | |
parent | 39548d6822ce2a8cea49e4467f8329335aa0d85d (diff) |
*Merge.
--HG--
branch : trunk
Diffstat (limited to 'src/game/GridNotifiers.cpp')
-rw-r--r-- | src/game/GridNotifiers.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/game/GridNotifiers.cpp b/src/game/GridNotifiers.cpp index 5158f51d695..2b59a1a9098 100644 --- a/src/game/GridNotifiers.cpp +++ b/src/game/GridNotifiers.cpp @@ -73,6 +73,16 @@ PlayerVisibilityNotifier::Notify() if( i_data.HasData() ) { + uint32 entry = 0, map; + float x,y; + if(!i_visibleNow.empty()) + { + entry = (*i_visibleNow.begin())->GetEntry(); + map = (*i_visibleNow.begin())->GetMapId(); + x = (*i_visibleNow.begin())->GetPositionX(); + y = (*i_visibleNow.begin())->GetPositionY(); + } + // send create/outofrange packet to player (except player create updates that already sent using SendUpdateToPlayer) WorldPacket packet; i_data.BuildPacket(&packet); |