Fix build.

This commit is contained in:
Night Owl 2017-12-24 19:06:29 +05:00
parent f0e213d673
commit c09fb29c93
2 changed files with 4 additions and 4 deletions

View File

@ -219,7 +219,7 @@ class CItemArmorVest : public CItem
( pPlayer->pev->weapons & ( 1 << WEAPON_SUIT ) ) )
{
pPlayer->pev->armorvalue += 60;
pPlayer->pev->armorvalue = min( pPlayer->pev->armorvalue, MAX_NORMAL_BATTERY );
pPlayer->pev->armorvalue = Q_min( pPlayer->pev->armorvalue, MAX_NORMAL_BATTERY );
EMIT_SOUND( pPlayer->edict(), CHAN_ITEM, "items/gunpickup2.wav", 1, ATTN_NORM );
@ -253,7 +253,7 @@ class CItemHelmet : public CItem
( pPlayer->pev->weapons & ( 1 << WEAPON_SUIT ) ) )
{
pPlayer->pev->armorvalue += 40;
pPlayer->pev->armorvalue = min( pPlayer->pev->armorvalue, MAX_NORMAL_BATTERY );
pPlayer->pev->armorvalue = Q_min( pPlayer->pev->armorvalue, MAX_NORMAL_BATTERY );
EMIT_SOUND( pPlayer->edict(), CHAN_ITEM, "items/gunpickup2.wav", 1, ATTN_NORM );

View File

@ -2053,9 +2053,9 @@ void CTriggerPlayerFreeze::Use( CBaseEntity *pActivator, CBaseEntity *pCaller, U
pActivator = CBaseEntity::Instance( g_engfuncs.pfnPEntityOfEntIndex( 1 ) );
if( pActivator->pev->flags & FL_FROZEN )
( (CBasePlayer *)( pActivator )->EnableControl( TRUE );
( (CBasePlayer*)( pActivator ) )->EnableControl( TRUE );
else
( (CBasePlayer *)( pActivator )->EnableControl( FALSE );
( (CBasePlayer*)( pActivator ) )->EnableControl( FALSE );
};
// this is a really bad idea.