summaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-05-25 19:47:29 +0300
committerAndrei Karas <akaras@inbox.ru>2017-05-25 19:47:29 +0300
commita02e2ba72702226cc25b245cc0e2615ead279cee (patch)
treef4bbc296e42ac0543aecba573123bb1f45ccb0f8 /src/actions
parentcd8ef301f4796f15390d02d866ad88423b2d8d16 (diff)
downloadManaVerse-a02e2ba72702226cc25b245cc0e2615ead279cee.tar.gz
ManaVerse-a02e2ba72702226cc25b245cc0e2615ead279cee.tar.bz2
ManaVerse-a02e2ba72702226cc25b245cc0e2615ead279cee.tar.xz
ManaVerse-a02e2ba72702226cc25b245cc0e2615ead279cee.zip
Add chat command for clear current outfit.
Diffstat (limited to 'src/actions')
-rw-r--r--src/actions/commands.cpp9
-rw-r--r--src/actions/commands.h1
2 files changed, 10 insertions, 0 deletions
diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp
index 71dd2e7b4..ae50680fb 100644
--- a/src/actions/commands.cpp
+++ b/src/actions/commands.cpp
@@ -1895,6 +1895,15 @@ impHandler0(outfitToChat)
return true;
}
+impHandler0(outfitClear)
+{
+ if (!outfitWindow)
+ return false;
+
+ outfitWindow->clearCurrentOutfit();
+ return true;
+}
+
impHandler(moveAttackUp)
{
if (!actorManager)
diff --git a/src/actions/commands.h b/src/actions/commands.h
index 6c2c6cc9d..0b6f0cf30 100644
--- a/src/actions/commands.h
+++ b/src/actions/commands.h
@@ -153,6 +153,7 @@ namespace Actions
decHandler(partyExpShare);
decHandler(partyAutoItemShare);
decHandler(outfitToChat);
+ decHandler(outfitClear);
decHandler(moveAttackUp);
decHandler(moveAttackDown);
decHandler(movePriorityAttackUp);