summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-03-22 17:41:30 +0300
committerAndrei Karas <akaras@inbox.ru>2015-03-22 17:41:30 +0300
commit82ceb77559198eb46d3a49beb50d130ccdce0afb (patch)
tree9cd31ad15287f88b45d1c17f1dafe370e2bde380
parentbf71334ee1f0b194d5ef692f1abe6bf65eab3300 (diff)
downloadmv-82ceb77559198eb46d3a49beb50d130ccdce0afb.tar.gz
mv-82ceb77559198eb46d3a49beb50d130ccdce0afb.tar.bz2
mv-82ceb77559198eb46d3a49beb50d130ccdce0afb.tar.xz
mv-82ceb77559198eb46d3a49beb50d130ccdce0afb.zip
In charserverhandler add function to return hat slot.
-rw-r--r--src/net/charserverhandler.h2
-rw-r--r--src/net/eathena/charserverhandler.cpp5
-rw-r--r--src/net/eathena/charserverhandler.h2
-rw-r--r--src/net/tmwa/charserverhandler.cpp5
-rw-r--r--src/net/tmwa/charserverhandler.h2
5 files changed, 16 insertions, 0 deletions
diff --git a/src/net/charserverhandler.h b/src/net/charserverhandler.h
index 30bc1b627..445545436 100644
--- a/src/net/charserverhandler.h
+++ b/src/net/charserverhandler.h
@@ -74,6 +74,8 @@ class CharServerHandler notfinal
virtual unsigned int hairSprite() const A_WARN_UNUSED = 0;
+ virtual unsigned int hatSprite() const A_WARN_UNUSED = 0;
+
virtual unsigned int maxSprite() const A_WARN_UNUSED = 0;
virtual void clear() = 0;
diff --git a/src/net/eathena/charserverhandler.cpp b/src/net/eathena/charserverhandler.cpp
index 533f8f633..4573f1ebe 100644
--- a/src/net/eathena/charserverhandler.cpp
+++ b/src/net/eathena/charserverhandler.cpp
@@ -713,4 +713,9 @@ void CharServerHandler::ping() const
outMsg.writeInt32(0, "unused");
}
+unsigned int CharServerHandler::hatSprite() const
+{
+ return 7;
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/charserverhandler.h b/src/net/eathena/charserverhandler.h
index 2fd4d55f7..e646a2650 100644
--- a/src/net/eathena/charserverhandler.h
+++ b/src/net/eathena/charserverhandler.h
@@ -91,6 +91,8 @@ class CharServerHandler final : public MessageHandler,
void ping() const override final;
+ unsigned int hatSprite() const override final A_WARN_UNUSED;
+
protected:
static void processPincodeStatus(Net::MessageIn &msg);
diff --git a/src/net/tmwa/charserverhandler.cpp b/src/net/tmwa/charserverhandler.cpp
index d819e19e4..57e7eea1b 100644
--- a/src/net/tmwa/charserverhandler.cpp
+++ b/src/net/tmwa/charserverhandler.cpp
@@ -542,4 +542,9 @@ void CharServerHandler::ping() const
{
}
+unsigned int CharServerHandler::hatSprite() const
+{
+ return 7;
+}
+
} // namespace TmwAthena
diff --git a/src/net/tmwa/charserverhandler.h b/src/net/tmwa/charserverhandler.h
index c89cac22f..e1e2ec48e 100644
--- a/src/net/tmwa/charserverhandler.h
+++ b/src/net/tmwa/charserverhandler.h
@@ -92,6 +92,8 @@ class CharServerHandler final : public MessageHandler,
void ping() const override final;
+ unsigned int hatSprite() const override final A_WARN_UNUSED;
+
protected:
static void processCharCreate(Net::MessageIn &msg);