Commit 9dc02b2c authored by Eben Blaisdell's avatar Eben Blaisdell

dzParseInt in index.js fix

parent 9db86fcc
......@@ -458,6 +458,10 @@ Block.prototype.untransformDir = function(dir){
Block.prototype.isOpen = function(dir){
//console.log("isOpen");
//console.log(dir);
dir = parseInt(dir);
if(dir==NaN){
return "false";
}
dir = this.untransformDir(dir);
//console.log(dir);
newx = this.x + Block.dx(dir);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment