summaryrefslogtreecommitdiff
path: root/source/protocol.h
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2009-07-03 20:07:58 +0000
committerAndrey Nazarov <skuller@skuller.net>2009-07-03 20:07:58 +0000
commitb8a99ae139b62ce1b152fbca4b56b69818f12a46 (patch)
treefb4cf9cde47c8b2a5f29c55140620a747fb913ca /source/protocol.h
parentc0c85e61cdaa1dbe7fb8990cea0938413c1568a2 (diff)
Don't write entity angles as shorts, wasting around 16 bytes per frame is too much.
Marked Q2PRO protocol version 1016 as reserved, reverted current version to 1015. Save 2 bytes for Q2PRO clients on entities with EF_QUAD by sending ‘effects’ as shorts. Read U_SKIN16 as unsigned short (hardly ever used though).
Diffstat (limited to 'source/protocol.h')
-rw-r--r--source/protocol.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/protocol.h b/source/protocol.h
index fe4bdbc..95dc198 100644
--- a/source/protocol.h
+++ b/source/protocol.h
@@ -39,8 +39,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#define PROTOCOL_VERSION_Q2PRO_CLIENTNUM_FIX 1013 // r226
#define PROTOCOL_VERSION_Q2PRO_LONG_SOLID 1014 // r243
#define PROTOCOL_VERSION_Q2PRO_WATERJUMP_HACK 1015 // r335
-#define PROTOCOL_VERSION_Q2PRO_ANGLES16 1016 // r364
-#define PROTOCOL_VERSION_Q2PRO_CURRENT 1016 // r364
+#define PROTOCOL_VERSION_Q2PRO_RESERVED 1016 // r364
+#define PROTOCOL_VERSION_Q2PRO_CURRENT 1015 // r335
#define PROTOCOL_VERSION_MVD_MINIMUM 2009 // r168
#define PROTOCOL_VERSION_MVD_CURRENT 2010 // r177
@@ -303,7 +303,7 @@ typedef enum {
#define U_ANGLE1 (1<<10)
#define U_MODEL (1<<11)
#define U_RENDERFX8 (1<<12) // fullbright, etc
-#define U_ANGLES16 (1<<13)
+#define U_NOTUSED (1<<13)
#define U_EFFECTS8 (1<<14) // autorotate, trails, etc
#define U_MOREBITS2 (1<<15) // read one additional byte