engine: fix some signed char cases

This commit is contained in:
Alibek Omarov 2021-07-20 15:18:55 +03:00
parent 09d647182d
commit a547526e86
2 changed files with 2 additions and 2 deletions

View File

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

View File

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