202 {
203 for (
int i = 0; (double)i < worldSurface;
i++)
204 {
205 Main.tile[x,
i].active(active: false);
206 Main.tile[x,
i].frameX = -1;
207 Main.tile[x,
i].frameY = -1;
208 }
209 for (int j = (int)worldSurface; j < Main.maxTilesY; j++)
210 {
211 if ((double)j < rockLayer)
212 {
213 Main.tile[x, j].active(active: true);
214 Main.tile[x, j].type = 0;
215 Main.tile[x, j].frameX = -1;
216 Main.tile[x, j].frameY = -1;
217 }
218 else
219 {
220 Main.tile[x, j].active(active: true);
221 Main.tile[x, j].type = 1;
222 Main.tile[x, j].frameX = -1;
223 Main.tile[x, j].frameY = -1;
224 }
225 }
226 }