mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-26 06:34:23 +00:00
Fix build.
This commit is contained in:
parent
f0e213d673
commit
c09fb29c93
@ -219,7 +219,7 @@ class CItemArmorVest : public CItem
|
|||||||
( pPlayer->pev->weapons & ( 1 << WEAPON_SUIT ) ) )
|
( pPlayer->pev->weapons & ( 1 << WEAPON_SUIT ) ) )
|
||||||
{
|
{
|
||||||
pPlayer->pev->armorvalue += 60;
|
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 );
|
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->weapons & ( 1 << WEAPON_SUIT ) ) )
|
||||||
{
|
{
|
||||||
pPlayer->pev->armorvalue += 40;
|
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 );
|
EMIT_SOUND( pPlayer->edict(), CHAN_ITEM, "items/gunpickup2.wav", 1, ATTN_NORM );
|
||||||
|
|
||||||
|
@ -2053,9 +2053,9 @@ void CTriggerPlayerFreeze::Use( CBaseEntity *pActivator, CBaseEntity *pCaller, U
|
|||||||
pActivator = CBaseEntity::Instance( g_engfuncs.pfnPEntityOfEntIndex( 1 ) );
|
pActivator = CBaseEntity::Instance( g_engfuncs.pfnPEntityOfEntIndex( 1 ) );
|
||||||
|
|
||||||
if( pActivator->pev->flags & FL_FROZEN )
|
if( pActivator->pev->flags & FL_FROZEN )
|
||||||
( (CBasePlayer *)( pActivator )->EnableControl( TRUE );
|
( (CBasePlayer*)( pActivator ) )->EnableControl( TRUE );
|
||||||
else
|
else
|
||||||
( (CBasePlayer *)( pActivator )->EnableControl( FALSE );
|
( (CBasePlayer*)( pActivator ) )->EnableControl( FALSE );
|
||||||
};
|
};
|
||||||
|
|
||||||
// this is a really bad idea.
|
// this is a really bad idea.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user