diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-12-27 17:56:43 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-12-27 17:56:43 +0300 |
commit | eee2f72b047262cbb6478c67f2e5293a85ce79e4 (patch) | |
tree | a5924ee55bd5570825dccd0a344dd9f986157e12 /src/commands.cpp | |
parent | e068a57abf67381e4f58f90e40af3be6b386e240 (diff) | |
download | manaverse-eee2f72b047262cbb6478c67f2e5293a85ce79e4.tar.gz manaverse-eee2f72b047262cbb6478c67f2e5293a85ce79e4.tar.bz2 manaverse-eee2f72b047262cbb6478c67f2e5293a85ce79e4.tar.xz manaverse-eee2f72b047262cbb6478c67f2e5293a85ce79e4.zip |
allow to owner talk from own pet.
New chat command: /talkpet text
Diffstat (limited to 'src/commands.cpp')
-rw-r--r-- | src/commands.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/commands.cpp b/src/commands.cpp index 75347a9aa..8b25984b5 100644 --- a/src/commands.cpp +++ b/src/commands.cpp @@ -1252,6 +1252,15 @@ impHandler1(talkRaw) Net::getChatHandler()->talkRaw(args); } +impHandler1(talkPet) +{ + // in future probably need add channel detection + if (player_node->getPet()) + Net::getChatHandler()->talkPet(args, GENERAL_CHANNEL); + else + Net::getChatHandler()->talk(args, GENERAL_CHANNEL); +} + impHandler0(testsdlfont) { #if defined USE_OPENGL && defined DEBUG_SDLFONT |