mirror of
https://github.com/glest/glest-source.git
synced 2025-08-18 22:21:18 +02:00
&& not and .....
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user