home
·
contact
·
privacy
projects
/
plomrogue2-experiments
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix box scale/position bug.
[plomrogue2-experiments]
/
new2
/
rogue_chat_nocanvas_monochrome.html
diff --git
a/new2/rogue_chat_nocanvas_monochrome.html
b/new2/rogue_chat_nocanvas_monochrome.html
index 97c0f0879d8176baacf145a454b3fa6cb1b6b31c..df29814dc9fe87b926092c48e75e76c70f3dda53 100644
(file)
--- a/
new2/rogue_chat_nocanvas_monochrome.html
+++ b/
new2/rogue_chat_nocanvas_monochrome.html
@@
-44,12
+44,15
@@
let terminal = {
drawBox: function(start_y, start_x, height, width) {
let end_y = start_y + height;
let end_x = start_x + width;
drawBox: function(start_y, start_x, height, width) {
let end_y = start_y + height;
let end_x = start_x + width;
- for (let y = start_y, x = start_x; y < end_y; x++) {
- this.content[y][x] = ' ';
+ for (let y = start_y, x = start_x;; x++) {
if (x == end_x) {
if (x == end_x) {
- x = start_x - 1;
- y += 1;
- }
+ x = start_x;
+ y += 1;
+ if (y == end_y) {
+ break;
+ }
+ };
+ this.content[y][x] = ' ';
}
},
}
}
},
}