X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;f=rogue_chat.html;h=16a27ba68a4b6739615a506b4497088598d80d44;hb=79fb5ce7f20c880164d98fd47640e742041e2fd9;hp=3a636198a9bd69e888bbcad4607ce26f214f5129;hpb=dc2747c7daca975526206bfadecc1dd0ddcc8d67;p=plomrogue2
diff --git a/rogue_chat.html b/rogue_chat.html
index 3a63619..16a27ba 100644
--- a/rogue_chat.html
+++ b/rogue_chat.html
@@ -513,7 +513,7 @@ let server = {
game.thing_types[tokens[1]] = tokens[2]
} else if (tokens[0] === 'THING_CARRYING') {
let t = game.get_thing(tokens[1], false);
- t.carrying = t = game.get_thing(tokens[2], false);
+ t.carrying = game.get_thing(tokens[2], false);
} else if (tokens[0] === 'THING_INSTALLED') {
let t = game.get_thing(tokens[1], false);
t.installed = true;
@@ -1215,7 +1215,8 @@ let tui = {
content += this.mode.list_available_modes();
let start_x = 0;
if (!this.mode.has_input_prompt) {
- start_x = this.window_width
+ start_x = this.window_width;
+ this.draw_links = false;
}
terminal.drawBox(0, start_x, terminal.rows, this.window_width);
let [lines, _] = this.msg_into_lines_of_width(content, this.window_width);
@@ -1242,6 +1243,7 @@ let tui = {
}
},
full_refresh: function() {
+ this.draw_links = true;
this.links = {};
terminal.drawBox(0, 0, terminal.rows, terminal.cols);
this.recalc_input_lines();
@@ -1262,6 +1264,9 @@ let tui = {
if (this.show_help) {
this.draw_help();
}
+ if (!this.draw_links) {
+ this.links = {};
+ }
terminal.refresh();
}
}