diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-09-12 21:04:32 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-09-12 21:04:32 +0300 |
commit | 74bdd9957e405979ca34828caa91cec55f4a932d (patch) | |
tree | dee82979a5bcc38f2686c5275feaf5bd78a82ec9 /src/net/eathena/bankhandler.cpp | |
parent | 8b8efe383c502456a36d0f0faf5a2079b816243d (diff) | |
download | manaverse-74bdd9957e405979ca34828caa91cec55f4a932d.tar.gz manaverse-74bdd9957e405979ca34828caa91cec55f4a932d.tar.bz2 manaverse-74bdd9957e405979ca34828caa91cec55f4a932d.tar.xz manaverse-74bdd9957e405979ca34828caa91cec55f4a932d.zip |
Fix version to bank packets.
Diffstat (limited to 'src/net/eathena/bankhandler.cpp')
-rw-r--r-- | src/net/eathena/bankhandler.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/net/eathena/bankhandler.cpp b/src/net/eathena/bankhandler.cpp index 542215848..f40f7ef9f 100644 --- a/src/net/eathena/bankhandler.cpp +++ b/src/net/eathena/bankhandler.cpp @@ -26,6 +26,7 @@ #include "debug.h" extern Net::BankHandler *bankHandler; +extern int packetVersion; namespace EAthena { @@ -37,6 +38,8 @@ BankHandler::BankHandler() void BankHandler::deposit(const int money) const { + if (packetVersion < 20130724) + return; createOutPacket(CMSG_BANK_DEPOSIT); outMsg.writeInt32(0, "account id"); outMsg.writeInt32(money, "money"); @@ -44,6 +47,8 @@ void BankHandler::deposit(const int money) const void BankHandler::withdraw(const int money) const { + if (packetVersion < 20130724) + return; createOutPacket(CMSG_BANK_WITHDRAW); outMsg.writeInt32(0, "account id"); outMsg.writeInt32(money, "money"); @@ -51,18 +56,24 @@ void BankHandler::withdraw(const int money) const void BankHandler::check() const { + if (packetVersion < 20130724) + return; createOutPacket(CMSG_BANK_CHECK); outMsg.writeInt32(0, "account id"); } void BankHandler::open() const { + if (packetVersion < 20130724) + return; createOutPacket(CMSG_BANK_OPEN); outMsg.writeInt32(0, "unused"); } void BankHandler::close() const { + if (packetVersion < 20130724) + return; createOutPacket(CMSG_BANK_CLOSE); outMsg.writeInt32(0, "unused"); } |