When Ctrl+Z undoes a movement, remove that movement form the movement history as well (resolves #64)

This commit is contained in:
Manuel Vögele
2021-08-02 15:43:22 +02:00
parent 9552c25e6e
commit 59c12d017b
3 changed files with 38 additions and 3 deletions
+4
View File
@@ -210,3 +210,7 @@ export function setSnapParameterOnOptions(sourceObject, options) {
options.snap = !game.keyboard._downKeys.has("Shift");
}
}
export function isClose(a, b, delta) {
return Math.abs(a - b) <= delta;
}