From e776dbbfc80466563c79c9befba82bacfeb2da59 Mon Sep 17 00:00:00 2001 From: VladimirMangos Date: Mon, 20 Jun 2011 22:36:37 +0400 Subject: [PATCH] [11658] Revert "[11298] NearUsedPosDo searcher should add only units with correct coordinates. Possibly can help with freezes when 'DetectPosCollision = 1'." This reverts commit a79ca96e4ae7b6ab1b70319e8b3011253068c841. This restore work object pos selector for units. Reverted commit make fully disabled it work for multiply attackers case. --- src/game/Object.cpp | 4 ++-- src/shared/revision_nr.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/game/Object.cpp b/src/game/Object.cpp index 318cd373f..a0f458c5b 100644 --- a/src/game/Object.cpp +++ b/src/game/Object.cpp @@ -1722,9 +1722,9 @@ namespace MaNGOS { x = c->GetPositionX(); y = c->GetPositionY(); - - add(c,x,y); } + + add(c,x,y); } template diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 8d5affdef..7fd0441a6 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "11657" + #define REVISION_NR "11658" #endif // __REVISION_NR_H__