&& not and .....
This commit is contained in:
parent
d28b47ffb1
commit
821e159b05
|
@ -403,7 +403,7 @@ void MapPreview::copyXY(int x, int y, int sx, int sy) {
|
|||
|
||||
// swap a cell in the map with another, used by rotate etc
|
||||
void MapPreview::swapXY(int x, int y, int sx, int sy) {
|
||||
if(inside(x, y) and inside(sx, sy)){
|
||||
if(inside(x, y) && inside(sx, sy)){
|
||||
float tmpHeight= cells[x][y].height;
|
||||
cells[x][y].height= cells[sx][sy].height;
|
||||
cells[sx][sy].height= tmpHeight;
|
||||
|
|
Loading…
Reference in New Issue