mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-02-11 06:24:30 +00:00
Remove unneeded casts.
This commit is contained in:
parent
097cf2efa8
commit
62efc9cf64
@ -153,17 +153,17 @@ void CGhost :: Precache()
|
||||
int i;
|
||||
|
||||
if (pev->model)
|
||||
PRECACHE_MODEL((char*)STRING(pev->model)); //LRC
|
||||
PRECACHE_MODEL( STRING(pev->model) ); //LRC
|
||||
else
|
||||
PRECACHE_MODEL("models/ghost.mdl");
|
||||
|
||||
PRECACHE_SOUND("ghost/ear_ringing.wav");
|
||||
|
||||
for ( i = 0; i < ARRAYSIZE( pAlertSounds ); i++ )
|
||||
PRECACHE_SOUND((char *)pAlertSounds[i]);
|
||||
PRECACHE_SOUND( pAlertSounds[i] );
|
||||
|
||||
for ( i = 0; i < ARRAYSIZE( pDeathSounds ); i++ )
|
||||
PRECACHE_SOUND((char *)pDeathSounds[i]);
|
||||
PRECACHE_SOUND( pDeathSounds[i] );
|
||||
}
|
||||
|
||||
//=========================================================
|
||||
|
@ -184,29 +184,29 @@ void CWheelchair :: Precache()
|
||||
int i;
|
||||
m_vomitSprite = PRECACHE_MODEL("sprites/wheelchair_vomit.spr");
|
||||
if (pev->model)
|
||||
PRECACHE_MODEL((char*)STRING(pev->model)); //LRC
|
||||
PRECACHE_MODEL(STRING(pev->model)); //LRC
|
||||
else
|
||||
PRECACHE_MODEL("models/wheelchair_monster.mdl");
|
||||
|
||||
PRECACHE_SOUND( "wheelchair/wcm_squirt.wav" );
|
||||
|
||||
for ( i = 0; i < ARRAYSIZE( pAttackHitSounds ); i++ )
|
||||
PRECACHE_SOUND((char *)pAttackHitSounds[i]);
|
||||
PRECACHE_SOUND( pAttackHitSounds[i] );
|
||||
|
||||
for ( i = 0; i < ARRAYSIZE( pAttackMissSounds ); i++ )
|
||||
PRECACHE_SOUND((char *)pAttackMissSounds[i]);
|
||||
PRECACHE_SOUND( pAttackMissSounds[i] );
|
||||
|
||||
for ( i = 0; i < ARRAYSIZE( pAttackSounds ); i++ )
|
||||
PRECACHE_SOUND((char *)pAttackSounds[i]);
|
||||
PRECACHE_SOUND( pAttackSounds[i] );
|
||||
|
||||
for ( i = 0; i < ARRAYSIZE( pIdleSounds ); i++ )
|
||||
PRECACHE_SOUND((char *)pIdleSounds[i]);
|
||||
PRECACHE_SOUND( pIdleSounds[i] );
|
||||
|
||||
for ( i = 0; i < ARRAYSIZE( pAlertSounds ); i++ )
|
||||
PRECACHE_SOUND((char *)pAlertSounds[i]);
|
||||
PRECACHE_SOUND( pAlertSounds[i] );
|
||||
|
||||
for ( i = 0; i < ARRAYSIZE( pPainSounds ); i++ )
|
||||
PRECACHE_SOUND((char *)pPainSounds[i]);
|
||||
PRECACHE_SOUND( pPainSounds[i] );
|
||||
}
|
||||
|
||||
//=========================================================
|
||||
|
@ -227,27 +227,27 @@ void CZombie2 :: Precache()
|
||||
int i;
|
||||
|
||||
if (pev->model)
|
||||
PRECACHE_MODEL((char*)STRING(pev->model)); //LRC
|
||||
PRECACHE_MODEL( STRING(pev->model) ); //LRC
|
||||
else
|
||||
PRECACHE_MODEL("models/zombie2.mdl");
|
||||
|
||||
for ( i = 0; i < ARRAYSIZE( pAttackHitSounds ); i++ )
|
||||
PRECACHE_SOUND((char *)pAttackHitSounds[i]);
|
||||
PRECACHE_SOUND( pAttackHitSounds[i] );
|
||||
|
||||
for ( i = 0; i < ARRAYSIZE( pAttackMissSounds ); i++ )
|
||||
PRECACHE_SOUND((char *)pAttackMissSounds[i]);
|
||||
PRECACHE_SOUND( pAttackMissSounds[i] );
|
||||
|
||||
for ( i = 0; i < ARRAYSIZE( pAttackSounds ); i++ )
|
||||
PRECACHE_SOUND((char *)pAttackSounds[i]);
|
||||
PRECACHE_SOUND( pAttackSounds[i] );
|
||||
|
||||
for ( i = 0; i < ARRAYSIZE( pIdleSounds ); i++ )
|
||||
PRECACHE_SOUND((char *)pIdleSounds[i]);
|
||||
PRECACHE_SOUND( pIdleSounds[i] );
|
||||
|
||||
for ( i = 0; i < ARRAYSIZE( pAlertSounds ); i++ )
|
||||
PRECACHE_SOUND((char *)pAlertSounds[i]);
|
||||
PRECACHE_SOUND( pAlertSounds[i] );
|
||||
|
||||
for ( i = 0; i < ARRAYSIZE( pPainSounds ); i++ )
|
||||
PRECACHE_SOUND((char *)pPainSounds[i]);
|
||||
PRECACHE_SOUND( pPainSounds[i] );
|
||||
}
|
||||
|
||||
//=========================================================
|
||||
|
@ -227,27 +227,27 @@ void CZombie3 :: Precache()
|
||||
int i;
|
||||
|
||||
if (pev->model)
|
||||
PRECACHE_MODEL((char*)STRING(pev->model)); //LRC
|
||||
PRECACHE_MODEL( STRING( pev->model ) ); //LRC
|
||||
else
|
||||
PRECACHE_MODEL("models/zombie3.mdl");
|
||||
PRECACHE_MODEL( "models/zombie3.mdl" );
|
||||
|
||||
for ( i = 0; i < ARRAYSIZE( pAttackHitSounds ); i++ )
|
||||
PRECACHE_SOUND((char *)pAttackHitSounds[i]);
|
||||
PRECACHE_SOUND( pAttackHitSounds[i] );
|
||||
|
||||
for ( i = 0; i < ARRAYSIZE( pAttackMissSounds ); i++ )
|
||||
PRECACHE_SOUND((char *)pAttackMissSounds[i]);
|
||||
PRECACHE_SOUND( pAttackMissSounds[i] );
|
||||
|
||||
for ( i = 0; i < ARRAYSIZE( pAttackSounds ); i++ )
|
||||
PRECACHE_SOUND((char *)pAttackSounds[i]);
|
||||
PRECACHE_SOUND( pAttackSounds[i] );
|
||||
|
||||
for ( i = 0; i < ARRAYSIZE( pIdleSounds ); i++ )
|
||||
PRECACHE_SOUND((char *)pIdleSounds[i]);
|
||||
PRECACHE_SOUND( pIdleSounds[i] );
|
||||
|
||||
for ( i = 0; i < ARRAYSIZE( pAlertSounds ); i++ )
|
||||
PRECACHE_SOUND((char *)pAlertSounds[i]);
|
||||
PRECACHE_SOUND( pAlertSounds[i] );
|
||||
|
||||
for ( i = 0; i < ARRAYSIZE( pPainSounds ); i++ )
|
||||
PRECACHE_SOUND((char *)pPainSounds[i]);
|
||||
PRECACHE_SOUND( pPainSounds[i] );
|
||||
}
|
||||
|
||||
//=========================================================
|
||||
|
@ -227,27 +227,27 @@ void CZombie4 :: Precache()
|
||||
int i;
|
||||
|
||||
if (pev->model)
|
||||
PRECACHE_MODEL((char*)STRING(pev->model)); //LRC
|
||||
PRECACHE_MODEL( STRING(pev->model) ); //LRC
|
||||
else
|
||||
PRECACHE_MODEL("models/zombie4.mdl");
|
||||
|
||||
for ( i = 0; i < ARRAYSIZE( pAttackHitSounds ); i++ )
|
||||
PRECACHE_SOUND((char *)pAttackHitSounds[i]);
|
||||
PRECACHE_SOUND( pAttackHitSounds[i] );
|
||||
|
||||
for ( i = 0; i < ARRAYSIZE( pAttackMissSounds ); i++ )
|
||||
PRECACHE_SOUND((char *)pAttackMissSounds[i]);
|
||||
PRECACHE_SOUND( pAttackMissSounds[i] );
|
||||
|
||||
for ( i = 0; i < ARRAYSIZE( pAttackSounds ); i++ )
|
||||
PRECACHE_SOUND((char *)pAttackSounds[i]);
|
||||
PRECACHE_SOUND( pAttackSounds[i] );
|
||||
|
||||
for ( i = 0; i < ARRAYSIZE( pIdleSounds ); i++ )
|
||||
PRECACHE_SOUND((char *)pIdleSounds[i]);
|
||||
PRECACHE_SOUND( pIdleSounds[i] );
|
||||
|
||||
for ( i = 0; i < ARRAYSIZE( pAlertSounds ); i++ )
|
||||
PRECACHE_SOUND((char *)pAlertSounds[i]);
|
||||
PRECACHE_SOUND( pAlertSounds[i] );
|
||||
|
||||
for ( i = 0; i < ARRAYSIZE( pPainSounds ); i++ )
|
||||
PRECACHE_SOUND((char *)pPainSounds[i]);
|
||||
PRECACHE_SOUND( pPainSounds[i] );
|
||||
}
|
||||
|
||||
//=========================================================
|
||||
|
Loading…
x
Reference in New Issue
Block a user