Pārlūkot izejas kodu

Fix position snapping when the camera has moved

master
Fen Dweller pirms 5 gadiem
vecāks
revīzija
31d97be00a
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. +2
    -2
      macrovision.js

+ 2
- 2
macrovision.js Parādīt failu

@@ -221,8 +221,8 @@ function constrainRel(coords) {
return coords;
}
return {
x: Math.min(Math.max(coords.x, -worldWidth / 2), worldWidth / 2),
y: Math.min(Math.max(coords.y, 0), worldHeight)
x: Math.min(Math.max(coords.x, -worldWidth / 2 + config.x), worldWidth / 2 + config.x),
y: Math.min(Math.max(coords.y, config.y), worldHeight + config.y)
}
}
function snapRel(coords) {


Notiek ielāde…
Atcelt
Saglabāt