From 49e6170b49fbb933eddec6d0e3f946320c68832f Mon Sep 17 00:00:00 2001 From: Andrey Nazarov Date: Wed, 23 Apr 2008 15:02:41 +0000 Subject: Added `dumpents' server command. Added support for `cl_noskins' value of 2 (default all female skins to `female/athena', all male skins to `male/grunt'). Renamed `scoreshot' command to `aashot', added `aadump' command. Fixed several alignment issues on ARM architecture. Server browser menu now indicates full and password protected servers with color codes. Implemented history search in console with Ctrl+R, Ctrl+S. Removed `cl_railtrail_alpha' variable, all `cl_rail*_color' variables now accept colors in #RRGGBBAA format. Added `map_override' cvar (enables loading map entity lump from external maps/*.ent file). Made `quit' command accept extra arguments. Made `draw' command accept arbitrary colors in #RRGGBBAA format. Fixed debian packages. --- source/sv_mvd.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source/sv_mvd.c') diff --git a/source/sv_mvd.c b/source/sv_mvd.c index 535a0ba..446a7fe 100644 --- a/source/sv_mvd.c +++ b/source/sv_mvd.c @@ -660,7 +660,7 @@ static void SV_MvdEmitGamestate( void ) { player_state_t *ps; entity_state_t *es; size_t length; - uint16_t *patch; + uint8_t *patch; int flags, extra, portalbytes; byte portalbits[MAX_MAP_AREAS/8]; @@ -731,7 +731,9 @@ static void SV_MvdEmitGamestate( void ) { } MSG_WriteShort( 0 ); - *patch = LittleShort( msg_write.cursize - 2 ); + length = msg_write.cursize - 2; + patch[0] = length & 255; + patch[1] = ( length >> 8 ) & 255; } void SV_MvdClientNew( tcpClient_t *client ) { -- cgit v1.2.3