diff options
Diffstat (limited to 'src/net/tmwa/messageout.cpp')
-rw-r--r-- | src/net/tmwa/messageout.cpp | 34 |
1 files changed, 1 insertions, 33 deletions
diff --git a/src/net/tmwa/messageout.cpp b/src/net/tmwa/messageout.cpp index 80d49463d..1cad0657c 100644 --- a/src/net/tmwa/messageout.cpp +++ b/src/net/tmwa/messageout.cpp @@ -114,39 +114,7 @@ void MessageOut::writeCoordinates(const uint16_t x, temp <<= 4; data[1] |= HIBYTE(temp); data[2] = LOBYTE(temp); - - // Translate direction to eAthena format - switch (direction) - { - case 1: - direction = 0; - break; - case 3: - direction = 1; - break; - case 2: - direction = 2; - break; - case 6: - direction = 3; - break; - case 4: - direction = 4; - break; - case 12: - direction = 5; - break; - case 8: - direction = 6; - break; - case 9: - direction = 7; - break; - default: - // OOPSIE! Impossible or unknown - direction = static_cast<unsigned char>(-1); - break; - } + direction = toServerDirection(direction); data[2] |= direction; PacketCounters::incOutBytes(3); } |