int ry = this.getHeight()/s/2;
for (int x = -rx; x < rx; x++) {
for (int y = -ry; y < ry; y++) {
int hx = x+xshift;
int hy = y+yshift;
if (hm == null || !hm.containsPoint(hx, hy)){
hm = tmg.getHeightMapAtXY(hx, hy, tmp, null);
}
int h = tmg.getHeight(hx, hy, tmp, hm);
int wh = tmg.getWaterHeight(hx, hy, tmp);
if (wh > h){