449    {
  456        if (Main.drawToScreen)
  457        {
  459        }
  461        {
  462            Main.critterCage = false;
  463        }
  467        if (flag)
  468        {
  470        }
  471        float num = 255f * (1f - Main.gfxQuality) + 30f * Main.gfxQuality;
  472        _highQualityLightingRequirement.R = (byte)num;
  473        _highQualityLightingRequirement.G = (byte)((double)num * 1.1);
  474        _highQualityLightingRequirement.B = (byte)((double)num * 1.2);
  475        float num2 = 50f * (1f - Main.gfxQuality) + 2f * Main.gfxQuality;
 
  476        _mediumQualityLightingRequirement.R = (byte)
num2;
 
  477        _mediumQualityLightingRequirement.G = (byte)((
double)
num2 * 1.1);
 
  478        _mediumQualityLightingRequirement.B = (byte)((
double)
num2 * 1.2);
 
  480        byte b = (byte)(100f + 150f * Main.martianLight);
 
  483        for (
int i = firstTileY; 
i < lastTileY + 4; 
i++)
 
  484        {
  485            for (
int j = firstTileX - 2; 
j < lastTileX + 2; 
j++)
 
  486            {
  487                Tile tile = Main.tile[
j, 
i];
 
  488                if (tile == null)
  489                {
  491                    Main.tile[
j, 
i] = tile;
 
  492                    Main.mapTime += 60;
  493                }
  494                else
  495                {
  497                    {
  498                        continue;
  499                    }
  501                    {
  503                    }
  504                    ushort 
type = tile.type;
 
  505                    short frameX = tile.frameX;
  506                    short frameY = tile.frameY;
  507                    if (!TextureAssets.Tile[
type].IsLoaded)
 
  508                    {
  509                        Main.instance.LoadTiles(
type);
 
  510                    }
  512                    {
  513                    case 52:
  514                    case 62:
  515                    case 115:
  516                    case 205:
  517                    case 382:
  518                    case 528:
  519                    case 636:
  520                    case 638:
  521                        if (flag)
  522                        {
  524                        }
  525                        continue;
  526                    case 549:
  527                        if (flag)
  528                        {
  530                        }
  531                        continue;
  532                    case 34:
  533                        if (frameX % 54 == 0 && frameY % 54 == 0 && flag)
  534                        {
  536                        }
  537                        continue;
  538                    case 454:
  539                        if (frameX % 72 == 0 && frameY % 54 == 0 && flag)
  540                        {
  542                        }
  543                        continue;
  544                    case 42:
  545                    case 270:
  546                    case 271:
  547                    case 572:
  548                    case 581:
  549                    case 660:
  550                        if (frameX % 18 == 0 && frameY % 36 == 0 && flag)
  551                        {
  553                        }
  554                        continue;
  555                    case 91:
  556                        if (frameX % 18 == 0 && frameY % 54 == 0 && flag)
  557                        {
  559                        }
  560                        continue;
  561                    case 95:
  562                    case 126:
  563                    case 444:
  564                        if (frameX % 36 == 0 && frameY % 36 == 0 && flag)
  565                        {
  567                        }
  568                        continue;
  569                    case 465:
  570                    case 591:
  571                    case 592:
  572                        if (frameX % 36 == 0 && frameY % 54 == 0 && flag)
  573                        {
  575                        }
  576                        continue;
  577                    case 27:
  578                        if (frameX % 36 == 0 && frameY == 0 && flag)
  579                        {
  581                        }
  582                        continue;
  583                    case 236:
  584                    case 238:
  585                        if (frameX % 36 == 0 && frameY == 0 && flag)
  586                        {
  588                        }
  589                        continue;
  590                    case 233:
  591                        if (frameY == 0 && frameX % 54 == 0 && flag)
  592                        {
  594                        }
  595                        if (frameY == 34 && frameX % 36 == 0 && flag)
  596                        {
  598                        }
  599                        continue;
  600                    case 652:
  601                        if (frameX % 36 == 0 && flag)
  602                        {
  604                        }
  605                        continue;
  606                    case 651:
  607                        if (frameX % 54 == 0 && flag)
  608                        {
  610                        }
  611                        continue;
  612                    case 530:
  613                        if (frameX < 270)
  614                        {
  615                            if (frameX % 54 == 0 && frameY == 0 && flag)
  616                            {
  618                            }
  619                            continue;
  620                        }
  621                        break;
  622                    case 485:
  623                    case 489:
  624                    case 490:
  625                        if (frameY == 0 && frameX % 36 == 0 && flag)
  626                        {
  628                        }
  629                        continue;
  630                    case 521:
  631                    case 522:
  632                    case 523:
  633                    case 524:
  634                    case 525:
  635                    case 526:
  636                    case 527:
  637                        if (frameY == 0 && frameX % 36 == 0 && flag)
  638                        {
  640                        }
  641                        continue;
  642                    case 493:
  643                        if (frameY == 0 && frameX % 18 == 0 && flag)
  644                        {
  646                        }
  647                        continue;
  648                    case 519:
  649                        if (frameX / 18 <= 4 && flag)
  650                        {
  652                        }
  653                        continue;
  654                    case 373:
  655                    case 374:
  656                    case 375:
  657                    case 461:
  659                        continue;
  660                    case 491:
  661                        if (flag && frameX == 18 && frameY == 18)
  662                        {
  664                        }
  665                        break;
  666                    case 597:
  667                        if (flag && frameX % 54 == 0 && frameY == 0)
  668                        {
  670                        }
  671                        break;
  672                    case 617:
  673                        if (flag && frameX % 54 == 0 && frameY % 72 == 0)
  674                        {
  676                        }
  677                        break;
  678                    case 184:
  679                        if (flag)
  680                        {
  682                        }
  683                        continue;
  684                    default:
  686                        {
  687                            if (flag)
  688                            {
  690                            }
  691                            continue;
  692                        }
  693                        break;
  694                    }
  696                }
  697            }
  698        }
  700        {
  701            Main.instance.DrawTileCracks(1, Main.player[Main.myPlayer].hitReplace);
  702            Main.instance.DrawTileCracks(1, Main.player[Main.myPlayer].hitTile);
  703        }
  706        {
  707            Main.instance.LoadTiles(TileObject.objectPreview.Type);
  709        }
  711        {
  712            TimeLogger.DrawTime(0, 
stopwatch.Elapsed.TotalMilliseconds);
 
  713        }
  714        else
  715        {
  716            TimeLogger.DrawTime(1, 
stopwatch.Elapsed.TotalMilliseconds);
 
  717        }
  718    }
void ClearCachedTileDraws(bool solidLayer)
 
void GetScreenDrawArea(Vector2 screenPosition, Vector2 offSet, out int firstTileX, out int lastTileX, out int firstTileY, out int lastTileY)
 
void ClearLegacyCachedDraws()
 
bool IsTileDrawLayerSolid(ushort typeCache)
 
bool ShouldSwayInWind(int x, int y, Tile tileCache)
 
void EnsureWindGridSize()
 
void AddSpecialPoint(int x, int y, TileCounterType type)
 
void EmitLiquidDrops(int j, int i, Tile tileCache, ushort typeCache)
 
void DrawSingleTile(TileDrawInfo drawData, bool solidLayer, int waterStyleOverride, Vector2 screenPosition, Vector2 screenOffset, int tileX, int tileY)
 
void CrawlToBottomOfReverseVineAndAddSpecialPoint(int j, int i)
 
ThreadLocal< TileDrawInfo > _currentTileDrawInfo
 
void CrawlToTopOfVineAndAddSpecialPoint(int j, int i)
 
bool _isActiveAndNotPaused
 
void DrawTile_LiquidBehindTile(bool solidLayer, bool inFrontOfPlayers, int waterStyleOverride, Vector2 screenPosition, Vector2 screenOffset, int tileX, int tileY, Tile tileCache)
 
void DrawSpecialTilesLegacy(Vector2 screenPosition, Vector2 offSet)
 
static CaptureManager Instance
 
bool cursorItemIconEnabled