summaryrefslogtreecommitdiff
path: root/src/net/eathena/gamehandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena/gamehandler.cpp')
-rw-r--r--src/net/eathena/gamehandler.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/net/eathena/gamehandler.cpp b/src/net/eathena/gamehandler.cpp
index 1ed6851dd..566233684 100644
--- a/src/net/eathena/gamehandler.cpp
+++ b/src/net/eathena/gamehandler.cpp
@@ -40,6 +40,9 @@
#include "debug.h"
extern int packetVersion;
+extern int packetVersionMain;
+extern int packetVersionRe;
+extern int packetVersionZero;
namespace EAthena
{
@@ -228,4 +231,15 @@ void GameHandler::reqRemainTime() const
createOutPacket(CMSG_REQ_REMAIN_TIME);
}
+void GameHandler::ping2() const
+{
+ if (packetVersionMain < 20190227 &&
+ packetVersionRe < 20190220 &&
+ packetVersionZero < 20190220)
+ {
+ return;
+ }
+ createOutPacket(CMSG_MAP_PING2);
+}
+
} // namespace EAthena