From e5ac29f35d9a0ede9d1263ab1bb7c20568dbdd67 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 25 Aug 2014 12:46:16 +0300 Subject: Move chat command /cleangraphics into actions. --- src/actions/actions.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/actions/actions.cpp') diff --git a/src/actions/actions.cpp b/src/actions/actions.cpp index 73c57985c..ae9a21b76 100644 --- a/src/actions/actions.cpp +++ b/src/actions/actions.cpp @@ -78,6 +78,8 @@ #include "listeners/updatestatuslistener.h" +#include "resources/resourcemanager.h" + #include "resources/map/map.h" #include "utils/gettext.h" @@ -542,4 +544,16 @@ impHandler0(who) return true; } +impHandler0(cleanGraphics) +{ + ResourceManager::getInstance()->clearCache(); + + if (debugChatTab) + { + // TRANSLATORS: clear graphics command message + debugChatTab->chatLog(_("Cache cleaned")); + } + return true; +} + } // namespace Actions -- cgit v1.2.3-70-g09d2