diff --git a/include/llmr/map/map.hpp b/include/llmr/map/map.hpp index 117bf3402..0bdfbd82a 100644 --- a/include/llmr/map/map.hpp +++ b/include/llmr/map/map.hpp @@ -28,6 +28,7 @@ public: /* callback */ bool render(); + void cancelAnimations(); void tileLoaded(std::shared_ptr tile); void tileFailed(std::shared_ptr tile); diff --git a/src/map/map.cpp b/src/map/map.cpp index e53af16e8..09428dc57 100644 --- a/src/map/map.cpp +++ b/src/map/map.cpp @@ -151,6 +151,10 @@ void Map::toggleDebug() { settings.save(); } +void Map::cancelAnimations() { + transform.cancelAnimations(); +} + void Map::update() { updateTiles(); platform::restart(this);