diff options
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; } |