From f6642766c1285b4ad3a1e2fa45dc58a3510d12bb Mon Sep 17 00:00:00 2001 From: "Justin R. Miller" Date: Fri, 7 Feb 2014 12:26:39 -0500 Subject: [PATCH] expose transform animations cancel through map --- include/llmr/map/map.hpp | 1 + src/map/map.cpp | 4 ++++ 2 files changed, 5 insertions(+) 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);