summaryrefslogtreecommitdiff
path: root/source/sv_mvd.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/sv_mvd.c')
-rw-r--r--source/sv_mvd.c6
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 ) {