home
·
contact
·
privacy
projects
/
plomrogue2
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix bug where MAP height setting would break draw_map.
[plomrogue2]
/
rogue_chat.html
diff --git
a/rogue_chat.html
b/rogue_chat.html
index d971c9bd47d1f17683c531d22d5a19ac2c1a9a30..f7a97ec11325cebb6faf66a769209fceea5aae0e 100644
(file)
--- a/
rogue_chat.html
+++ b/
rogue_chat.html
@@
-1066,7
+1066,7
@@
let tui = {
let term_x = Math.max(0, -this.offset[1]);
let map_y = Math.max(0, this.offset[0]);
let map_x = Math.max(0, this.offset[1]);
let term_x = Math.max(0, -this.offset[1]);
let map_y = Math.max(0, this.offset[0]);
let map_x = Math.max(0, this.offset[1]);
- for (; term_y < terminal.rows && map_y <
game.map_size[0]
; term_y++, map_y++) {
+ for (; term_y < terminal.rows && map_y <
this.map_lines.length
; term_y++, map_y++) {
let to_draw = this.map_lines[map_y].slice(map_x, this.window_width + this.offset[1]);
terminal.write(term_y, term_x, to_draw);
}
let to_draw = this.map_lines[map_y].slice(map_x, this.window_width + this.offset[1]);
terminal.write(term_y, term_x, to_draw);
}