summaryrefslogtreecommitdiff
path: root/src/net/eathena/playerhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-11-04 20:19:53 +0300
committerAndrei Karas <akaras@inbox.ru>2016-11-04 21:16:31 +0300
commitc5a5274c86201b74325a8b84ab4543c73959c5d5 (patch)
treedfc3e7a8e584a2f42e1dcd70a8ce9837ac448549 /src/net/eathena/playerhandler.cpp
parentcb6572ebd60ecc525c5a236a26eefc673841f056 (diff)
downloadplus-c5a5274c86201b74325a8b84ab4543c73959c5d5.tar.gz
plus-c5a5274c86201b74325a8b84ab4543c73959c5d5.tar.bz2
plus-c5a5274c86201b74325a8b84ab4543c73959c5d5.tar.xz
plus-c5a5274c86201b74325a8b84ab4543c73959c5d5.zip
Dont send some packets with unsupported server versions.
Diffstat (limited to 'src/net/eathena/playerhandler.cpp')
-rw-r--r--src/net/eathena/playerhandler.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/net/eathena/playerhandler.cpp b/src/net/eathena/playerhandler.cpp
index ccffde7a6..8798d09df 100644
--- a/src/net/eathena/playerhandler.cpp
+++ b/src/net/eathena/playerhandler.cpp
@@ -456,11 +456,10 @@ void PlayerHandler::setShortcut(const int idx,
void PlayerHandler::shortcutShiftRow(const int row) const
{
- if (packetVersion < 20141022 ||
- (serverVersion != 0 && serverVersion < 11))
- {
+ if (packetVersion < 20141022)
+ return;
+ if (serverVersion != 0 && serverVersion < 11)
return;
- }
createOutPacket(CMSG_SHORTCUTS_ROW_SHIFT);
outMsg.writeInt8(CAST_S8(row), "row");
}