Browse Source

cl_dll: death: fix char signness

half-secret
Alibek Omarov 5 years ago
parent
commit
fbb5da7051
  1. 4
      cl_dll/death.cpp

4
cl_dll/death.cpp

@ -204,7 +204,7 @@ int CHudDeathNotice::MsgFunc_DeathMsg( const char *pszName, int iSize, void *pbu
// Get the Victim's name // Get the Victim's name
const char *victim_name = ""; const char *victim_name = "";
// If victim is -1, the killer killed a specific, non-player object (like a sentrygun) // 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; victim_name = g_PlayerInfoList[victim].name;
if( !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? // Is it a non-player object kill?
if( ( (char)victim ) == -1 ) if( ( (signed char)victim ) == -1 )
{ {
rgDeathNoticeList[i].iNonPlayerKill = TRUE; rgDeathNoticeList[i].iNonPlayerKill = TRUE;

Loading…
Cancel
Save