about summary refs log tree commit diff stats
path: root/html/rogue/js/player.js
diff options
context:
space:
mode:
Diffstat (limited to 'html/rogue/js/player.js')
-rw-r--r--html/rogue/js/player.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/html/rogue/js/player.js b/html/rogue/js/player.js
index e35db31..22e57e0 100644
--- a/html/rogue/js/player.js
+++ b/html/rogue/js/player.js
@@ -99,12 +99,11 @@ const player = {
             this.movementProgress += this.moveSpeed;
             
             if (this.movementProgress >= 1) {
-                // Movement to current target complete
                 this.position = this.target;
                 this.target = null;
                 this.movementProgress = 0;
+                this.hasMoved = true;
                 
-                // If there are more points in the path, move to the next one
                 if (this.path.length > 0) {
                     this.target = this.path.shift();
                     this.movementProgress = 0;