aboutsummaryrefslogtreecommitdiff
path: root/src/game/Cell.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/Cell.h
parent2e127f7a30706dc1d40c65de22ff02851732da24 (diff)
Code style (game + scripts only):
"if(" --> "if (" --HG-- branch : trunk
Diffstat (limited to 'src/game/Cell.h')
-rw-r--r--src/game/Cell.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/game/Cell.h b/src/game/Cell.h
index 78b12f1bf35..23d5f56c417 100644
--- a/src/game/Cell.h
+++ b/src/game/Cell.h
@@ -79,29 +79,29 @@ struct Cell
Compute(x, y);
cell.Compute(old_x, old_y);
- if( std::abs(int(x-old_x)) > 1 || std::abs(int(y-old_y)) > 1)
+ if ( std::abs(int(x-old_x)) > 1 || std::abs(int(y-old_y)) > 1)
{
data.Part.reserved = ALL_DISTRICT;
cell.data.Part.reserved = ALL_DISTRICT;
return;
}
- if( x < old_x )
+ if ( x < old_x )
{
data.Part.reserved |= LEFT_DISTRICT;
cell.data.Part.reserved |= RIGHT_DISTRICT;
}
- else if( old_x < x )
+ else if ( old_x < x )
{
data.Part.reserved |= RIGHT_DISTRICT;
cell.data.Part.reserved |= LEFT_DISTRICT;
}
- if( y < old_y )
+ if ( y < old_y )
{
data.Part.reserved |= UPPER_DISTRICT;
cell.data.Part.reserved |= LOWER_DISTRICT;
}
- else if( old_y < y )
+ else if ( old_y < y )
{
data.Part.reserved |= LOWER_DISTRICT;
cell.data.Part.reserved |= UPPER_DISTRICT;