Changeset 168 for binary-improvements
- Timestamp:
- Sep 5, 2014, 4:03:00 PM (10 years ago)
- Location:
- binary-improvements
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/7dtd-server-fixes/src/MapRendering/MapRenderBlockBuffer.cs
r143 r168 17 17 { 18 18 zoomLevel = level; 19 } 20 21 public void ResetBlock () 22 { 23 currentBlockMap = string.Empty; 19 24 } 20 25 … … 39 44 if (!fileName.Equals (currentBlockMap)) { 40 45 res = true; 41 SaveBlock ();46 SaveBlock (); 42 47 loadTextureFromFile (fileName); 43 48 } -
binary-improvements/7dtd-server-fixes/src/MapRendering/MapRendering.cs
r156 r168 82 82 Texture2D fullMapTexture = null; 83 83 84 if (Directory.Exists (Constants.MAP_DIRECTORY))85 Directory.Delete (Constants.MAP_DIRECTORY, true);86 87 renderingFullMap = true;88 89 84 Vector2i minChunk = default(Vector2i), maxChunk = default(Vector2i); 90 85 Vector2i minPos = default(Vector2i), maxPos = default(Vector2i); … … 99 94 ); 100 95 101 if (widthPix <= 8000 && heightPix <= 8000)102 fullMapTexture = new Texture2D (widthPix, heightPix);103 104 96 Monitor.Enter (Instance.zoomLevelBuffers); 105 97 try { 98 for (int i = 0; i < Constants.ZOOMLEVELS; i++) { 99 zoomLevelBuffers [i].ResetBlock (); 100 } 101 102 if (Directory.Exists (Constants.MAP_DIRECTORY)) 103 Directory.Delete (Constants.MAP_DIRECTORY, true); 104 105 renderingFullMap = true; 106 107 if (widthPix <= 8000 && heightPix <= 8000) 108 fullMapTexture = new Texture2D (widthPix, heightPix); 109 106 110 Vector2i curFullMapPos = default(Vector2i); 107 111 Vector2i curChunkPos = default(Vector2i); -
binary-improvements/7dtd-server-fixes/src/NetConnections/Servers/Web/API/GetPlayerInventory.cs
r163 r168 11 11 public override void HandleRequest (HttpListenerRequest req, HttpListenerResponse resp, HttpListenerBasicIdentity user) 12 12 { 13 Log.Out ("" + req.QueryString);14 15 13 if (req.QueryString ["steamid"] == null) { 16 14 resp.StatusCode = (int)HttpStatusCode.InternalServerError; -
binary-improvements/7dtd-server-fixes/src/NetConnections/Servers/Web/Web.cs
r163 r168 1 1 using System; 2 2 using System.Collections.Generic; 3 using System.IO; 3 4 using System.Net; 4 5 using System.Text; … … 25 26 26 27 _listener.Prefixes.Add (String.Format ("http://*:{0}/", port)); 27 //_listener.AuthenticationSchemes = AuthenticationSchemes.Basic; 28 if (File.Exists (Application.dataPath + "/../webserver/protect")) 29 _listener.AuthenticationSchemes = AuthenticationSchemes.Basic; 28 30 _listener.Start (); 29 31 … … 43 45 ); 44 46 45 Log.Out ("Started Webserver on " + port );47 Log.Out ("Started Webserver on " + port + " (authentication " + (_listener.AuthenticationSchemes == AuthenticationSchemes.Basic ? "enabled" : "disabled") + ")"); 46 48 } catch (Exception e) { 47 49 Log.Out ("Error in Web.ctor: " + e); -
binary-improvements/bin/Release/7dtd-server-fixes_version.txt
r165 r168 1 Version: 0.92.536 0.431611 Version: 0.92.5361.28833
Note:
See TracChangeset
for help on using the changeset viewer.