Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ RetargetColumn()

static void Terraria.GameContent.Biomes.TerrainPass.RetargetColumn ( int x,
double worldSurface )
inlinestaticprivate

Definition at line 228 of file TerrainPass.cs.

229 {
230 for (int i = 0; (double)i < worldSurface; i++)
231 {
232 Main.tile[x, i].active(active: false);
233 Main.tile[x, i].frameX = -1;
234 Main.tile[x, i].frameY = -1;
235 }
236 for (int j = (int)worldSurface; j < Main.maxTilesY; j++)
237 {
238 if (Main.tile[x, j].type != 1 || !Main.tile[x, j].active())
239 {
240 Main.tile[x, j].active(active: true);
241 Main.tile[x, j].type = 0;
242 Main.tile[x, j].frameX = -1;
243 Main.tile[x, j].frameY = -1;
244 }
245 }
246 }

References Terraria.Main.maxTilesY, and Terraria.Main.tile.

Referenced by Terraria.GameContent.Biomes.TerrainPass.RetargetSurfaceHistory().