aboutsummaryrefslogtreecommitdiff
path: root/src/game/GridDefines.h
diff options
context:
space:
mode:
authorSpp <none@none>2010-04-07 19:14:10 +0200
committerSpp <none@none>2010-04-07 19:14:10 +0200
commitd19e12708001fbef2308be0e8cb5375a2ac7af48 (patch)
tree09fc8f67a6197802e0512950f0b0a3438a9834e8 /src/game/GridDefines.h
parent2e127f7a30706dc1d40c65de22ff02851732da24 (diff)
Code style (game + scripts only):
"if(" --> "if (" --HG-- branch : trunk
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);
}