Remove unneeded casts.

This commit is contained in:
Night Owl 2018-09-12 18:12:14 +05:00
parent 097cf2efa8
commit 62efc9cf64
5 changed files with 32 additions and 32 deletions

View File

@ -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] );
}
//=========================================================

View File

@ -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] );
}
//=========================================================

View File

@ -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] );
}
//=========================================================

View File

@ -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] );
}
//=========================================================

View File

@ -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] );
}
//=========================================================