&& not and .....

This commit is contained in:
Titus Tscharntke 2011-05-24 01:07:57 +00:00
parent d28b47ffb1
commit 821e159b05
1 changed files with 1 additions and 1 deletions

View File

@ -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;