From 62efc9cf6413dce0e7c17cb0b4b983520e0e5c91 Mon Sep 17 00:00:00 2001 From: Night Owl Date: Wed, 12 Sep 2018 18:12:14 +0500 Subject: [PATCH] Remove unneeded casts. --- dlls/aomdc/ghost.cpp | 6 +++--- dlls/aomdc/wheelchair.cpp | 14 +++++++------- dlls/aomdc/zombie2.cpp | 14 +++++++------- dlls/aomdc/zombie3.cpp | 16 ++++++++-------- dlls/aomdc/zombie4.cpp | 14 +++++++------- 5 files changed, 32 insertions(+), 32 deletions(-) diff --git a/dlls/aomdc/ghost.cpp b/dlls/aomdc/ghost.cpp index d9df09b5..4713428e 100644 --- a/dlls/aomdc/ghost.cpp +++ b/dlls/aomdc/ghost.cpp @@ -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] ); } //========================================================= diff --git a/dlls/aomdc/wheelchair.cpp b/dlls/aomdc/wheelchair.cpp index da93eb5e..40ef803b 100644 --- a/dlls/aomdc/wheelchair.cpp +++ b/dlls/aomdc/wheelchair.cpp @@ -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] ); } //========================================================= diff --git a/dlls/aomdc/zombie2.cpp b/dlls/aomdc/zombie2.cpp index f72544f2..6e5508c8 100644 --- a/dlls/aomdc/zombie2.cpp +++ b/dlls/aomdc/zombie2.cpp @@ -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] ); } //========================================================= diff --git a/dlls/aomdc/zombie3.cpp b/dlls/aomdc/zombie3.cpp index 6af4fd07..336f7439 100644 --- a/dlls/aomdc/zombie3.cpp +++ b/dlls/aomdc/zombie3.cpp @@ -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] ); } //========================================================= diff --git a/dlls/aomdc/zombie4.cpp b/dlls/aomdc/zombie4.cpp index 2016945a..f7aa4f99 100644 --- a/dlls/aomdc/zombie4.cpp +++ b/dlls/aomdc/zombie4.cpp @@ -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] ); } //=========================================================