Browse Source

engine: fix some signed char cases

pull/2/head
Alibek Omarov 3 years ago
parent
commit
a547526e86
  1. 2
      engine/common/net_buffer.c
  2. 2
      engine/server/sv_game.c

2
engine/common/net_buffer.c

@ -386,7 +386,7 @@ qboolean MSG_WriteString( sizebuf_t *sb, const char *pStr )
{ {
do do
{ {
MSG_WriteChar( sb, *pStr ); MSG_WriteChar( sb, (signed char)*pStr );
pStr++; pStr++;
} while( *( pStr - 1 )); } while( *( pStr - 1 ));
} }

2
engine/server/sv_game.c

@ -2729,7 +2729,7 @@ pfnWriteChar
*/ */
void GAME_EXPORT pfnWriteChar( int iValue ) void GAME_EXPORT pfnWriteChar( int iValue )
{ {
MSG_WriteChar( &sv.multicast, (char)iValue ); MSG_WriteChar( &sv.multicast, (signed char)iValue );
svgame.msg_realsize++; svgame.msg_realsize++;
} }

Loading…
Cancel
Save