summaryrefslogtreecommitdiff
path: root/src/net/eathena/bankhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-19 17:33:16 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-19 17:33:16 +0300
commitb7addc0a9a519cf9dcc3e804d9918ce4934a3e83 (patch)
treeeed5cd349f7e9db512fd1e940ed7b070df1c6a35 /src/net/eathena/bankhandler.cpp
parent403792db7d005066273bcbe138afcd1a98b3144c (diff)
downloadmanaplus-b7addc0a9a519cf9dcc3e804d9918ce4934a3e83.tar.gz
manaplus-b7addc0a9a519cf9dcc3e804d9918ce4934a3e83.tar.bz2
manaplus-b7addc0a9a519cf9dcc3e804d9918ce4934a3e83.tar.xz
manaplus-b7addc0a9a519cf9dcc3e804d9918ce4934a3e83.zip
Add comments for all output packets header.
Diffstat (limited to 'src/net/eathena/bankhandler.cpp')
-rw-r--r--src/net/eathena/bankhandler.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/net/eathena/bankhandler.cpp b/src/net/eathena/bankhandler.cpp
index 7b4d849dd..352aca54e 100644
--- a/src/net/eathena/bankhandler.cpp
+++ b/src/net/eathena/bankhandler.cpp
@@ -61,21 +61,21 @@ void BankHandler::handleMessage(Net::MessageIn &msg)
void BankHandler::deposit(const int money) const
{
- MessageOut outMsg(CMSG_BANK_DEPOSIT);
+ createOutPacket(CMSG_BANK_DEPOSIT);
outMsg.writeInt32(0, "account id");
outMsg.writeInt32(money, "money");
}
void BankHandler::withdraw(const int money) const
{
- MessageOut outMsg(CMSG_BANK_WITHDRAW);
+ createOutPacket(CMSG_BANK_WITHDRAW);
outMsg.writeInt32(0, "account id");
outMsg.writeInt32(money, "money");
}
void BankHandler::check() const
{
- MessageOut outMsg(CMSG_BANK_CHECK);
+ createOutPacket(CMSG_BANK_CHECK);
outMsg.writeInt32(0, "account id");
}