Ignore:
Timestamp:
Aug 26, 2014, 7:29:11 PM (10 years ago)
Author:
alloc
Message:

Fixes: Source cleanups

File:
1 edited

Legend:

Unmodified
Added
Removed
  • binary-improvements/7dtd-server-fixes/src/MapRendering/MapRendering.cs

    r130 r132  
    2424                private MapRenderBlockBuffer[] zoomLevelBuffers = new MapRenderBlockBuffer[Constants.ZOOMLEVELS];
    2525                private Color[] chunkColors = new Color[Constants.MAP_CHUNK_SIZE * Constants.MAP_CHUNK_SIZE];
    26                 private System.Timers.Timer chunkSaveTimer = new System.Timers.Timer (100);
     26                private System.Timers.Timer chunkSaveTimer = new System.Timers.Timer (500);
    2727                private bool renderingFullMap = false;
    2828
    2929                private MapRendering ()
    3030                {
    31                         string regionSaveDir = StaticDirectories.GetSaveGameRegionDir ();
    32                         rfm = new RegionFileManager (regionSaveDir, regionSaveDir, 1, false);
    3331                        Constants.MAP_DIRECTORY = StaticDirectories.GetSaveGameDir () + "/map";
    3432
     
    6462                        MicroStopwatch microStopwatch = new MicroStopwatch ();
    6563
     64                        string regionSaveDir = StaticDirectories.GetSaveGameRegionDir ();
     65                        rfm = new RegionFileManager (regionSaveDir, regionSaveDir, 1, false);
     66
    6667                        if (Directory.Exists (Constants.MAP_DIRECTORY))
    6768                                Directory.Delete (Constants.MAP_DIRECTORY, true);
     
    8889                        }
    8990                        SaveAllBlockMaps (null, null);
     91
     92                        rfm = null;
    9093
    9194                        byte[] array = fullMapTexture.EncodeToPNG ();
Note: See TracChangeset for help on using the changeset viewer.