summaryrefslogtreecommitdiff
path: root/source/cl_parse.c
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/cl_parse.c
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/cl_parse.c')
-rw-r--r--source/cl_parse.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/cl_parse.c b/source/cl_parse.c
index 40f421f..0b21f95 100644
--- a/source/cl_parse.c
+++ b/source/cl_parse.c
@@ -870,6 +870,7 @@ static void CL_ParseServerData( void ) {
Com_DPrintf( "Q2PRO QW mode enabled\n" );
PmoveEnableQW( &cl.pmp );
}
+ cl.esFlags |= MSG_ES_UMASK;
if( cls.protocolVersion >= PROTOCOL_VERSION_Q2PRO_LONG_SOLID ) {
cl.esFlags |= MSG_ES_LONGSOLID;
}
@@ -880,9 +881,6 @@ static void CL_ParseServerData( void ) {
cl.pmp.waterhack = qtrue;
}
}
- if( cls.protocolVersion >= PROTOCOL_VERSION_Q2PRO_ANGLES16 ) {
- cl.esFlags |= MSG_ES_ANGLES16;
- }
cl.pmp.speedmult = 2;
cl.pmp.flyhack = qtrue; // fly hack is unconditionally enabled
cl.pmp.flyfriction = 4;
@@ -893,7 +891,9 @@ static void CL_ParseServerData( void ) {
CL_ClientCommand( va( "nextserver %i\n", cl.servercount ) );
} else {
// seperate the printfs so the server message can have a color
- Con_Printf( "\n\n\35\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\37\n\n" );
+ Con_Printf( "\n\n\35\36\36\36\36\36\36\36\36\36\36\36\36\36\36"
+ "\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36"
+ "\36\36\36\36\36\36\37\n\n" );
Con_Printf( S_COLOR_ALT "%s\n\n", levelname );
#if USE_SYSCON