summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
Diffstat (limited to 'src/net')
-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);