Added new shortcuts

This commit is contained in:
Devine Lu Linvega
2017-11-08 10:40:13 +13:00
parent a8c1851ace
commit 093c320eab
5 changed files with 68 additions and 11 deletions

View File

@@ -20,6 +20,6 @@ function Pos(x,y)
this.is_equal = function(pos2)
{
return pos2.x == this.x && pos2.y == this.y;
return Math.abs(pos2.x) == Math.abs(this.x) && Math.abs(pos2.y) == Math.abs(this.y);
}
}