code tidy up

Fixed indentation, fixed text overflow.
This commit is contained in:
Adrianl3d 2014-10-30 13:28:50 +10:00
parent 1d335c1218
commit 2532a54a2d

View file

@ -174,8 +174,8 @@ function updateWriting(deltaTime){
cursor = "|";
}
}
// attempt at some overflow control of the text
if ((writing.length % (width/11)) == 0) {
// attempt at some overflow control of the text
if ((writing.length % 53) == 0) {
writing = writing + "\n";
}
// add blinking cursor to window during typing
@ -185,8 +185,8 @@ function updateWriting(deltaTime){
}else{
Overlays.editOverlay(inputWindow, { text: writing});
}
}
//}
}
// test keystroke against keyString and capture permitted keys