diff options
Diffstat (limited to 'src/state.cpp')
-rw-r--r-- | src/state.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/state.cpp b/src/state.cpp index 5ce00dd9..5471e121 100644 --- a/src/state.cpp +++ b/src/state.cpp @@ -155,10 +155,15 @@ State::update() moving inside p's range. Report o's movements. */ Point od = (*o)->getDestination(); - if (on.x != od.x || on.y != od.y || on.x != os.x || on.y != os.y) + if (on.x != od.x || on.y != od.y) { flags |= MOVING_POSITION; } + else + { + // no need to synchronize on the very last step + flags |= MOVING_DESTINATION; + } // TODO: updates destination only on changes. flags |= MOVING_DESTINATION; |