summaryrefslogtreecommitdiff
path: root/src/net/messagein.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-02-27 17:14:45 +0300
committerAndrei Karas <akaras@inbox.ru>2014-02-27 17:14:45 +0300
commitf4776cb6852122ea1d6babc3a3df3bdbd401fce7 (patch)
treea53c31b3e789291d3edb3986fbf6359a2caa6efc /src/net/messagein.cpp
parentc61f1b6abe8e68995f00ae3a939afe5049e5cdb3 (diff)
downloadmv-f4776cb6852122ea1d6babc3a3df3bdbd401fce7.tar.gz
mv-f4776cb6852122ea1d6babc3a3df3bdbd401fce7.tar.bz2
mv-f4776cb6852122ea1d6babc3a3df3bdbd401fce7.tar.xz
mv-f4776cb6852122ea1d6babc3a3df3bdbd401fce7.zip
Remove some manaserv enums usage.
Diffstat (limited to 'src/net/messagein.cpp')
-rw-r--r--src/net/messagein.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/net/messagein.cpp b/src/net/messagein.cpp
index a6008da42..121e1e58f 100644
--- a/src/net/messagein.cpp
+++ b/src/net/messagein.cpp
@@ -59,22 +59,6 @@ unsigned char MessageIn::readInt8()
return value;
}
-void MessageIn::readCoordinates(uint16_t &restrict x, uint16_t &restrict y)
-{
- if (mPos + 3 <= mLength)
- {
- const unsigned char *const p
- = reinterpret_cast<unsigned char const *const>(mData + mPos);
- x = static_cast<uint16_t>(p[0] | ((p[1] & 0x07) << 8));
- y = static_cast<uint16_t>((p[1] >> 3) | ((p[2] & 0x3F) << 5));
- }
- mPos += 3;
- PacketCounters::incInBytes(3);
- DEBUGLOG(std::string("readCoordinates: ").append(toString(
- static_cast<int>(x))).append(",").append(toString(
- static_cast<int>(y))));
-}
-
uint8_t MessageIn::fromServerDirection(const uint8_t serverDir)
{
// Translate from eAthena format