home · contact · privacy
Record ideas for optimizing Dijkstra mapping.
[plomrogue2] / rogue_chat.html
index dd037e20997fbd620cd97228d40a94841b8e1d25..d4cedc2d9fca7cfbbd69d4e0e485198d5636096a 100644 (file)
@@ -120,8 +120,8 @@ keyboard input/control: <span id="keyboard_control"></span>
 </div>
 <script>
 "use strict";
-//let websocket_location = "wss://plomlompom.com/rogue_chat/";
-let websocket_location = "ws://localhost:8001/";
+let websocket_location = "wss://plomlompom.com/rogue_chat/";
+//let websocket_location = "ws://localhost:8001/";
 
 let mode_helps = {
     'play': {
@@ -899,6 +899,9 @@ let tui = {
       this.full_refresh();
   },
   draw_map: function() {
+    if (!game.turn_complete && this.map_lines.length == 0) {
+        return;
+    }
     if (game.turn_complete) {
         let map_lines_split = [];
         let line = [];