diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-08-15 02:52:07 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-08-15 02:52:07 +0300 |
commit | 34e386d0c2d4ae844d50185f70bba945960bad62 (patch) | |
tree | 96b2d1e4ab38dbc7b061006c3d3382f35af4a739 /src/net/ea/adminhandler.cpp | |
parent | 47f0e16e34cf22701b7c0670297bb7288a55310d (diff) | |
download | plus-34e386d0c2d4ae844d50185f70bba945960bad62.tar.gz plus-34e386d0c2d4ae844d50185f70bba945960bad62.tar.bz2 plus-34e386d0c2d4ae844d50185f70bba945960bad62.tar.xz plus-34e386d0c2d4ae844d50185f70bba945960bad62.zip |
Add warp menu item for gms in navigation items.
Diffstat (limited to 'src/net/ea/adminhandler.cpp')
-rw-r--r-- | src/net/ea/adminhandler.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/net/ea/adminhandler.cpp b/src/net/ea/adminhandler.cpp index 5440d14d0..bdd43b3f8 100644 --- a/src/net/ea/adminhandler.cpp +++ b/src/net/ea/adminhandler.cpp @@ -63,4 +63,10 @@ void AdminHandler::mute(int playerId A_UNUSED, int type A_UNUSED, return; // Still looking into this } +void AdminHandler::warp(std::string map, int x, int y) +{ + Net::getChatHandler()->talk(strprintf( + "@warp %s %d %d", map.c_str(), x, y)); +} + } // namespace Ea |