summaryrefslogtreecommitdiff
path: root/src/net/eathena/bankrecv.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-01-17 20:55:15 +0300
committerAndrei Karas <akaras@inbox.ru>2018-01-17 20:55:15 +0300
commit5457eedde5d9ce286817b523f38074cb75caeb85 (patch)
tree56147a21cdc930b188f1715424486f5f8efb0511 /src/net/eathena/bankrecv.cpp
parent1bf9b4e88e6e398d0f7e8b88ea78757e88aecfcd (diff)
downloadmv-5457eedde5d9ce286817b523f38074cb75caeb85.tar.gz
mv-5457eedde5d9ce286817b523f38074cb75caeb85.tar.bz2
mv-5457eedde5d9ce286817b523f38074cb75caeb85.tar.xz
mv-5457eedde5d9ce286817b523f38074cb75caeb85.zip
Show error message if bank check action failed.
Diffstat (limited to 'src/net/eathena/bankrecv.cpp')
-rw-r--r--src/net/eathena/bankrecv.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/net/eathena/bankrecv.cpp b/src/net/eathena/bankrecv.cpp
index 859978077..1f6abc85a 100644
--- a/src/net/eathena/bankrecv.cpp
+++ b/src/net/eathena/bankrecv.cpp
@@ -38,8 +38,10 @@ namespace EAthena
void BankRecv::processBankStatus(Net::MessageIn &msg)
{
const int money = CAST_S32(msg.readInt64("money"));
- msg.readInt16("reason");
+ const int reason = msg.readInt16("reason");
BankListener::distributeEvent(money);
+ if (reason != 0)
+ NotifyManager::notify(NotifyTypes::BANK_CHECK_FAILED);
}
void BankRecv::processBankDeposit(Net::MessageIn &msg)