From db242eaf07dff580bd29e5cc916e35fa4a7cf7fb Mon Sep 17 00:00:00 2001 From: mittorn Date: Sun, 17 Apr 2016 13:21:56 +0000 Subject: [PATCH] Fix CL_IsDead --- cl_dll/hud/health.cpp | 6 ++++-- cl_dll/include/com_weapons.h | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/cl_dll/hud/health.cpp b/cl_dll/hud/health.cpp index c3f2811..f019327 100644 --- a/cl_dll/hud/health.cpp +++ b/cl_dll/hud/health.cpp @@ -560,7 +560,9 @@ CL_IsDead Returns 1 if health is <= 0 ============ */ -bool CL_IsDead( void ) +bool CL_IsDead() { - return gHUD.m_Health.m_iHealth <= 0; + if( gHUD.m_Health.m_iHealth <= 0 ) + return true; + return false; } diff --git a/cl_dll/include/com_weapons.h b/cl_dll/include/com_weapons.h index a562de1..bb1ce1c 100644 --- a/cl_dll/include/com_weapons.h +++ b/cl_dll/include/com_weapons.h @@ -41,7 +41,7 @@ extern "C" } void COM_Log( char *pszFile, char *fmt, ...); -int CL_IsDead( void ); +bool CL_IsDead(); float UTIL_SharedRandomFloat( unsigned int seed, float low, float high ); int UTIL_SharedRandomLong( unsigned int seed, int low, int high );