diff options
author | Andrey Nazarov <skuller@skuller.net> | 2008-04-23 15:02:41 +0000 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2008-04-23 15:02:41 +0000 |
commit | 49e6170b49fbb933eddec6d0e3f946320c68832f (patch) | |
tree | 88d228d6f89103710074fdba041ce80584d5caa6 /source/sv_mvd.c | |
parent | 8c795585fb0c6c9178d9981f6943da04b7279205 (diff) |
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.
Diffstat (limited to 'source/sv_mvd.c')
-rw-r--r-- | source/sv_mvd.c | 6 |
1 files changed, 4 insertions, 2 deletions
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 ) { |