diff options
-rw-r--r-- | src/net/tmwa/pethandler.cpp | 2 | ||||
-rw-r--r-- | src/utils/stringutils.cpp | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/net/tmwa/pethandler.cpp b/src/net/tmwa/pethandler.cpp index 917f3a162..787b288b5 100644 --- a/src/net/tmwa/pethandler.cpp +++ b/src/net/tmwa/pethandler.cpp @@ -55,7 +55,7 @@ void PetHandler::handleMessage(Net::MessageIn &msg A_UNUSED) void PetHandler::move(const int petId A_UNUSED, const int x, const int y) const { - chatHandler->talk(strprintf("\302\202\302m%d %dg%d", + chatHandler->talk(strprintf("\302\202\302m%d,%dg%d", x, y, tick_time), GENERAL_CHANNEL); } diff --git a/src/utils/stringutils.cpp b/src/utils/stringutils.cpp index 8af8ea547..3aa3cee02 100644 --- a/src/utils/stringutils.cpp +++ b/src/utils/stringutils.cpp @@ -734,7 +734,9 @@ void secureChatCommand(std::string &str) bool parse2Int(const std::string &args, int &x, int &y) { bool isValid = false; - const size_t pos = args.find(" "); + size_t pos = args.find(" "); + if (pos == std::string::npos) + pos = args.find(","); if (pos != std::string::npos) { if (pos + 1 < args.length()) |