misty
This commit is contained in:
@@ -72,7 +72,7 @@ function handleMouseButtonDown(e) {
|
||||
var mx = e.mouse.x;
|
||||
var my = e.mouse.y;
|
||||
|
||||
var c = [number.floor(mx / 60), number.floor(my / 60)];
|
||||
var c = [floor(mx / 60), floor(my / 60)];
|
||||
if (!grid.inBounds(c)) return;
|
||||
|
||||
var cell = grid.at(c);
|
||||
@@ -103,7 +103,7 @@ function handleMouseButtonUp(e) {
|
||||
var mx = e.mouse.x;
|
||||
var my = e.mouse.y;
|
||||
|
||||
var c = [number.floor(mx / 60), number.floor(my / 60)];
|
||||
var c = [floor(mx / 60), floor(my / 60)];
|
||||
if (!grid.inBounds(c)) {
|
||||
holdingPiece = false;
|
||||
return;
|
||||
@@ -138,7 +138,7 @@ function handleMouseMotion(e) {
|
||||
var mx = e.pos.x;
|
||||
var my = e.pos.y;
|
||||
|
||||
var c = [number.floor(mx / 60), number.floor(my / 60)];
|
||||
var c = [floor(mx / 60), floor(my / 60)];
|
||||
if (!grid.inBounds(c)) {
|
||||
hoverPos = null;
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user