1
1
Fork 0
mirror of https://github.com/boxgaming/qbjs.git synced 2024-09-20 04:24:45 +00:00

Updating x seems necessary here.

Wonder why it was commented out. That line is still in the live version at qbjs.org; will do some research, sorry for the mess.
This commit is contained in:
Fellippe Heitor 2023-05-13 17:54:51 -03:00 committed by GitHub
parent c3b6e10955
commit e8b01ca60c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

2
qb.js
View file

@ -2205,7 +2205,6 @@ var QB = new function() {
var str = args[ai]; var str = args[ai];
var lines = String(str).split("\n"); var lines = String(str).split("\n");
for (var i=0; i < lines.length; i++) { for (var i=0; i < lines.length; i++) {
//var x = _locX * QB.func__FontWidth();
if (_locX > _textColumns()-1 || _locX + lines[i].length > _textColumns()) { if (_locX > _textColumns()-1 || _locX + lines[i].length > _textColumns()) {
_locX = 0; _locX = 0;
if (_locY < _textRows()-1) { if (_locY < _textRows()-1) {
@ -2215,6 +2214,7 @@ var QB = new function() {
await _printScroll(); await _printScroll();
} }
} }
x = _locX * QB.func__FontWidth();
var y = -1; var y = -1;
// scroll the screen // scroll the screen