diff options
author | Björn Steinbrink <B.Steinbrink@gmx.de> | 2006-02-03 13:53:50 +0000 |
---|---|---|
committer | Björn Steinbrink <B.Steinbrink@gmx.de> | 2006-02-03 13:53:50 +0000 |
commit | f8d16a36db8f9d1f22f3a15d2fbee19b7c68ebef (patch) | |
tree | 802a461fe83d67a3576a33b114ca6508c524b71e /src | |
parent | dcc54d69934830386f42670552c6c6ca58386149 (diff) | |
download | mana-client-f8d16a36db8f9d1f22f3a15d2fbee19b7c68ebef.tar.gz mana-client-f8d16a36db8f9d1f22f3a15d2fbee19b7c68ebef.tar.bz2 mana-client-f8d16a36db8f9d1f22f3a15d2fbee19b7c68ebef.tar.xz mana-client-f8d16a36db8f9d1f22f3a15d2fbee19b7c68ebef.zip |
Removed some unused code.
Diffstat (limited to 'src')
-rw-r--r-- | src/net/protocol.cpp | 11 | ||||
-rw-r--r-- | src/net/protocol.h | 6 |
2 files changed, 0 insertions, 17 deletions
diff --git a/src/net/protocol.cpp b/src/net/protocol.cpp index 5de1b0cf..f31d4a39 100644 --- a/src/net/protocol.cpp +++ b/src/net/protocol.cpp @@ -26,17 +26,6 @@ #define LOBYTE(w) ((unsigned char)(w)) #define HIBYTE(w) ((unsigned char)(((unsigned short)(w)) >> 8)) -unsigned char get_src_direction(char data) -{ - data >>= 4; - return data; -} - -unsigned char get_dest_direction(char data) -{ - return data & 0x000f; -} - void set_coordinates(char *data, unsigned short x, unsigned short y, diff --git a/src/net/protocol.h b/src/net/protocol.h index 716aa0f9..72b459ed 100644 --- a/src/net/protocol.h +++ b/src/net/protocol.h @@ -104,12 +104,6 @@ #define CMSG_PLAYER_EQUIP 0x00a9 #define CMSG_PLAYER_UNEQUIP 0x00ab -/** Decodes src direction */ -unsigned char get_src_direction(char data); - -/** Decodes dest direction */ -unsigned char get_dest_direction(char data); - /** Encodes coords and direction in 3 bytes data */ void set_coordinates(char *data, unsigned short x, unsigned short y, unsigned char direction); |