142143144145146147148149150151152
count++; if (Client.settings.STORE_LAND_PATCHES) { TerrainPatch patch = new TerrainPatch(); patch.Data = heightmap; patch.X = x; patch.Y = y; simulator.Terrain[y * 16 + x] = patch; }
904905906907908909910911912913914
int patchX = x / 16; int patchY = y / 16; x = x % 16; y = y % 16; TerrainPatch patch = Terrain[patchY * 16 + patchX]; if (patch != null) { height[0] = patch.Data[y * 16 + x]; return true; }