aboutsummaryrefslogtreecommitdiff
path: root/src/game/GridDefines.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/GridDefines.h')
-rw-r--r--src/game/GridDefines.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/game/GridDefines.h b/src/game/GridDefines.h
index 0357d8ca8ae..e0f2d72277f 100644
--- a/src/game/GridDefines.h
+++ b/src/game/GridDefines.h
@@ -89,7 +89,7 @@ struct CoordPair
void operator<<(const uint32 val)
{
- if( x_coord > val )
+ if ( x_coord > val )
x_coord -= val;
else
x_coord = 0;
@@ -97,7 +97,7 @@ struct CoordPair
void operator>>(const uint32 val)
{
- if( x_coord+val < LIMIT )
+ if ( x_coord+val < LIMIT )
x_coord += val;
else
x_coord = LIMIT - 1;
@@ -105,7 +105,7 @@ struct CoordPair
void operator-=(const uint32 val)
{
- if( y_coord > val )
+ if ( y_coord > val )
y_coord -= val;
else
y_coord = 0;
@@ -113,7 +113,7 @@ struct CoordPair
void operator+=(const uint32 val)
{
- if( y_coord+val < LIMIT )
+ if ( y_coord+val < LIMIT )
y_coord += val;
else
y_coord = LIMIT - 1;
@@ -164,9 +164,9 @@ namespace Trinity
inline void NormalizeMapCoord(float &c)
{
- if(c > MAP_HALFSIZE - 0.5)
+ if (c > MAP_HALFSIZE - 0.5)
c = MAP_HALFSIZE - 0.5;
- else if(c < -(MAP_HALFSIZE - 0.5))
+ else if (c < -(MAP_HALFSIZE - 0.5))
c = -(MAP_HALFSIZE - 0.5);
}