*Merge [8524] New cell search algorithm implemented. You can now choose different

visibility distances on continents, in BG/Arenas and instances. Author: Ambal
*Some warning cleanup

--HG--
branch : trunk
This commit is contained in:
maximius
2009-09-27 02:24:25 -07:00
parent a635bdd0cc
commit f980dd9ac6
30 changed files with 606 additions and 140 deletions
+2 -6
View File
@@ -33,11 +33,7 @@ class GameObject;
class Pet;
class Player;
#ifdef LARGE_CELL
#define MAX_NUMBER_OF_CELLS 4
#else
#define MAX_NUMBER_OF_CELLS 8
#endif
#define MAX_NUMBER_OF_GRIDS 64
@@ -93,7 +89,7 @@ struct TRINITY_DLL_DECL CoordPair
void operator<<(const uint32 val)
{
if( x_coord >= val )
if( x_coord > val )
x_coord -= val;
else
x_coord = 0;
@@ -109,7 +105,7 @@ struct TRINITY_DLL_DECL CoordPair
void operator-=(const uint32 val)
{
if( y_coord >= val )
if( y_coord > val )
y_coord -= val;
else
y_coord = 0;