Skip to content

Commit

Permalink
[11298] NearUsedPosDo searcher should add only units with correct coo…
Browse files Browse the repository at this point in the history
…rdinates. Possibly can help with freezes when 'DetectPosCollision = 1'.

Signed-off-by: Ambal <pogrebniak@gala.net>
  • Loading branch information
Ambal committed Mar 30, 2011
1 parent a85c3d0 commit a79ca96
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/game/Object.cpp
Expand Up @@ -1702,9 +1702,9 @@ namespace MaNGOS
{
x = c->GetPositionX();
y = c->GetPositionY();
}

add(c,x,y);
add(c,x,y);
}
}

template<class T>
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "11297"
#define REVISION_NR "11298"
#endif // __REVISION_NR_H__

2 comments on commit a79ca96

@Ambal
Copy link
Contributor

@Ambal Ambal commented on a79ca96 Mar 30, 2011

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fix currently discards all mobs handled by 'destination' movement generators. So we are free to rollback this patch in case it will fix nothing.

@Neo2003
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For me, the only fix I was able to do (without deep research) is 'DetectPosCollision = 0' and since vmap code has been added to core years ago :)

Please sign in to comment.