36508 {
36509 int num = -1;
36511 {
36512 case 23:
36513 num = 661;
36514 break;
36515 case 199:
36516 num = 662;
36517 break;
36518 }
36523 {
36525 }
36527 {
36529 }
36531 {
36533 }
36535 {
36537 }
36538 if (
num4 >= 3 && Main.tile[i,
j].type !=
landType && Main.tile[i,
j].type != num)
36539 {
36540 return;
36541 }
36543 {
36544 case 0:
36546 break;
36547 case 1:
36549 break;
36550 case 2:
36552 break;
36553 case 3:
36555 break;
36556 }
36557 if (Main.tile[
num2,
num3].active())
36558 {
36559 return;
36560 }
36563 {
36565 }
36567 {
36569 }
36571 {
36573 }
36575 {
36577 }
36579 {
36580 return;
36581 }
36587 bool flag = false;
36589 {
36591 {
36593 {
36594 flag = true;
36595 break;
36596 }
36597 }
36598 }
36599 if (flag)
36600 {
36603 Main.tile[
num2,
num3].CopyPaintAndCoating(Main.tile[i,
j]);
36605 if (Main.netMode == 2)
36606 {
36607 NetMessage.SendTileSquare(-1,
num2,
num3, 1);
36608 }
36609 }
36610 }
static double Abs(double value)
static UnifiedRandom genRand
static void SquareTileFrame(int i, int j, bool resetFrame=true)