diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-02-25 19:05:31 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-02-25 19:05:31 +0300 |
commit | 77392dfa39913e4d6c51934deab51088da878e7a (patch) | |
tree | a6f56d693f5847a22e1514d17f7752798b84597b /src/actions | |
parent | 4eb67aee829ba4f7b59d5a8f885a472d843e679a (diff) | |
download | manaplus-77392dfa39913e4d6c51934deab51088da878e7a.tar.gz manaplus-77392dfa39913e4d6c51934deab51088da878e7a.tar.bz2 manaplus-77392dfa39913e4d6c51934deab51088da878e7a.tar.xz manaplus-77392dfa39913e4d6c51934deab51088da878e7a.zip |
Add chat command /randomwarp. Also add it to player context menu.
Diffstat (limited to 'src/actions')
-rw-r--r-- | src/actions/commands.cpp | 6 | ||||
-rw-r--r-- | src/actions/commands.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp index 771bf0ed5..c317af86a 100644 --- a/src/actions/commands.cpp +++ b/src/actions/commands.cpp @@ -1381,4 +1381,10 @@ impHandler(commandLoadPosition) return true; } +impHandler(commandRandomWarp) +{ + adminHandler->randomWarp(event.args); + return true; +} + } // namespace Actions diff --git a/src/actions/commands.h b/src/actions/commands.h index c7b1b60cb..bf7ebe03c 100644 --- a/src/actions/commands.h +++ b/src/actions/commands.h @@ -118,6 +118,7 @@ namespace Actions decHandler(commandSpawnEvilClone); decHandler(commandSavePosition); decHandler(commandLoadPosition); + decHandler(commandRandomWarp); } // namespace Actions #undef decHandler |