diff options
author | Spp <none@none> | 2010-04-07 22:59:46 +0200 |
---|---|---|
committer | Spp <none@none> | 2010-04-07 22:59:46 +0200 |
commit | 49d05ba9aa1cd5c1f3ae96546283e6d03a037ff7 (patch) | |
tree | f7e6135573366a686c1f527e16a0a7d42a7877ff /src/game/Cell.h | |
parent | d19e12708001fbef2308be0e8cb5375a2ac7af48 (diff) |
Code style (game + scripts only):
"( " --> "("
" )" --> ")"
--HG--
branch : trunk
Diffstat (limited to 'src/game/Cell.h')
-rw-r--r-- | src/game/Cell.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/game/Cell.h b/src/game/Cell.h index 23d5f56c417..e61a96124dd 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; @@ -116,14 +116,14 @@ struct Cell bool DiffCell(const Cell &cell) const { - return( data.Part.cell_x != cell.data.Part.cell_x || - data.Part.cell_y != cell.data.Part.cell_y ); + return(data.Part.cell_x != cell.data.Part.cell_x || + data.Part.cell_y != cell.data.Part.cell_y); } bool DiffGrid(const Cell &cell) const { - return( data.Part.grid_x != cell.data.Part.grid_x || - data.Part.grid_y != cell.data.Part.grid_y ); + return(data.Part.grid_x != cell.data.Part.grid_x || + data.Part.grid_y != cell.data.Part.grid_y); } uint32 CellX() const { return data.Part.cell_x; } |