mirror of
https://github.com/FWGS/hlsdk-xash3d
synced 2024-11-22 01:47:45 +01:00
cl_dll: death: fix char signness
This commit is contained in:
parent
fea49e2187
commit
fbb5da7051
@ -204,7 +204,7 @@ int CHudDeathNotice::MsgFunc_DeathMsg( const char *pszName, int iSize, void *pbu
|
||||
// Get the Victim's name
|
||||
const char *victim_name = "";
|
||||
// If victim is -1, the killer killed a specific, non-player object (like a sentrygun)
|
||||
if( ( (char)victim ) != -1 )
|
||||
if( ( (signed char)victim ) != -1 )
|
||||
victim_name = g_PlayerInfoList[victim].name;
|
||||
if( !victim_name )
|
||||
{
|
||||
@ -219,7 +219,7 @@ int CHudDeathNotice::MsgFunc_DeathMsg( const char *pszName, int iSize, void *pbu
|
||||
}
|
||||
|
||||
// Is it a non-player object kill?
|
||||
if( ( (char)victim ) == -1 )
|
||||
if( ( (signed char)victim ) == -1 )
|
||||
{
|
||||
rgDeathNoticeList[i].iNonPlayerKill = TRUE;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user