Changeset 151


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

Fixes

Location:
binary-improvements
Files:
4 edited

Legend:

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

    r148 r151  
    227227                private void getBlockNumber (Vector2i innerPos, out Vector2i block, out Vector2i blockOffset, int scaleFactor, int offsetSize)
    228228                {
     229                        block = default(Vector2i);
     230                        blockOffset = default(Vector2i);
    229231                        block.x = ((innerPos.x + 16777216) / scaleFactor) - (16777216 / scaleFactor);
    230232                        block.y = ((innerPos.y + 16777216) / scaleFactor) - (16777216 / scaleFactor);
     
    238240                                            out int widthPix, out int heightPix)
    239241                {
     242                        minChunk = default(Vector2i);
     243                        maxChunk = default(Vector2i);
     244                        minPos = default(Vector2i);
     245                        maxPos = default(Vector2i);
     246
    240247                        long[] keys = rfm.GetAllChunkKeys ();
    241248                        int minX = Int32.MaxValue;
  • binary-improvements/7dtd-server-fixes/src/NetConnections/Servers/Web/Web.cs

    r142 r151  
    2020 
    2121                                handlers.Add ("/index.", new SimpleRedirectHandler ("/static/index.html"));
    22                                 handlers.Add ("/static/", new StaticHandler ("/static/", Application.dataPath + "/../webserver", true, true));
     22                                handlers.Add ("/static/", new StaticHandler ("/static/", Application.dataPath + "/../webserver", false/*true*/, true)); // TODO: Enable cache
    2323                                handlers.Add ("/map/", new StaticHandler ("/map/", StaticDirectories.GetSaveGameDir () + "/map", false, false));
    2424
  • binary-improvements/bin/Release/7dtd-server-fixes_version.txt

    r148 r151  
    1 Version:       0.91.5356.28465
     1Version:       0.91.5356.41724
Note: See TracChangeset for help on using the changeset viewer.