From 7ae98c37beada9d336b6be8171d6ab377f9465ff Mon Sep 17 00:00:00 2001 From: Andrey Akhmichin Date: Tue, 7 Jan 2020 18:09:13 +0500 Subject: [PATCH] Remove useless casts. --- dlls/aomdc/axe.cpp | 2 +- dlls/aomdc/beretta.cpp | 2 +- dlls/aomdc/deagle.cpp | 2 +- dlls/aomdc/glock.cpp | 2 +- dlls/aomdc/gmgeneral.cpp | 2 +- dlls/aomdc/hammer.cpp | 2 +- dlls/aomdc/knife.cpp | 2 +- dlls/aomdc/mp5k.cpp | 2 +- dlls/aomdc/p228.cpp | 2 +- dlls/aomdc/revolver.cpp | 2 +- dlls/aomdc/spear.cpp | 2 +- dlls/aomdc/uzi.cpp | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/dlls/aomdc/axe.cpp b/dlls/aomdc/axe.cpp index b14782dc..8ee10776 100644 --- a/dlls/aomdc/axe.cpp +++ b/dlls/aomdc/axe.cpp @@ -192,7 +192,7 @@ int CAxe::Swing( int fFirst ) #endif PLAYBACK_EVENT_FULL( FEV_NOTHOST, m_pPlayer->edict(), m_usAxe, - 0.0, (float *)&g_vecZero, (float *)&g_vecZero, 0, 0, 0, + 0.0, g_vecZero, g_vecZero, 0, 0, 0, 0.0, 0, 0.0 ); diff --git a/dlls/aomdc/beretta.cpp b/dlls/aomdc/beretta.cpp index 98e5dcb0..7cc3d7b1 100644 --- a/dlls/aomdc/beretta.cpp +++ b/dlls/aomdc/beretta.cpp @@ -141,7 +141,7 @@ void CBeretta::PrimaryAttack( void ) Vector vecDir = m_pPlayer->FireBulletsPlayer( 1, vecSrc, vecAiming, Vector( flSpread, flSpread, flSpread ), 8192, BULLET_PLAYER_9MM, 0, gSkillData.plrDmgBeretta, m_pPlayer->pev, m_pPlayer->random_seed ); - PLAYBACK_EVENT_FULL( flags, m_pPlayer->edict(), m_usFireBeretta, 0.0, (float *)&g_vecZero, (float *)&g_vecZero, vecDir.x, vecDir.y, 0, 0, ( m_iClip == 0 ) ? 1 : 0, 0 ); + PLAYBACK_EVENT_FULL( flags, m_pPlayer->edict(), m_usFireBeretta, 0.0, g_vecZero, g_vecZero, vecDir.x, vecDir.y, 0, 0, ( m_iClip == 0 ) ? 1 : 0, 0 ); m_flNextPrimaryAttack = UTIL_WeaponTimeBase() + 0.2f; diff --git a/dlls/aomdc/deagle.cpp b/dlls/aomdc/deagle.cpp index 99774ea3..617083e6 100644 --- a/dlls/aomdc/deagle.cpp +++ b/dlls/aomdc/deagle.cpp @@ -136,7 +136,7 @@ void CDeagle::PrimaryAttack( void ) Vector vecDir = m_pPlayer->FireBulletsPlayer( 1, vecSrc, vecAiming, Vector( flSpread, flSpread, flSpread ), 8192, BULLET_PLAYER_9MM, 0, gSkillData.plrDmgDeagle, m_pPlayer->pev, m_pPlayer->random_seed ); - PLAYBACK_EVENT_FULL( flags, m_pPlayer->edict(), m_usFireDeagle, 0.0, (float *)&g_vecZero, (float *)&g_vecZero, vecDir.x, vecDir.y, 0, 0, ( m_iClip == 0 ) ? 1 : 0, 0 ); + PLAYBACK_EVENT_FULL( flags, m_pPlayer->edict(), m_usFireDeagle, 0.0, g_vecZero, g_vecZero, vecDir.x, vecDir.y, 0, 0, ( m_iClip == 0 ) ? 1 : 0, 0 ); m_flNextPrimaryAttack = UTIL_WeaponTimeBase() + 0.7f; diff --git a/dlls/aomdc/glock.cpp b/dlls/aomdc/glock.cpp index 3a5cd6ad..8db5f867 100644 --- a/dlls/aomdc/glock.cpp +++ b/dlls/aomdc/glock.cpp @@ -154,7 +154,7 @@ void CGlock::GlockFire( float flSpread, float flCycleTime, BOOL fUseBurst ) Vector vecDir = m_pPlayer->FireBulletsPlayer( 1, vecSrc, vecAiming, Vector( flSpread, flSpread, flSpread ), 8192, BULLET_PLAYER_9MM, 0, !fUseBurst ? gSkillData.plrDmgGlock : 0, m_pPlayer->pev, m_pPlayer->random_seed ); - PLAYBACK_EVENT_FULL( flags, m_pPlayer->edict(), !fUseBurst ? m_usFireGlock1 : m_usFireGlock2, 0.0, (float *)&g_vecZero, (float *)&g_vecZero, vecDir.x, vecDir.y, 0, 0, ( m_iClip == 0 ) ? 1 : 0, 0 ); + PLAYBACK_EVENT_FULL( flags, m_pPlayer->edict(), !fUseBurst ? m_usFireGlock1 : m_usFireGlock2, 0.0, g_vecZero, g_vecZero, vecDir.x, vecDir.y, 0, 0, ( m_iClip == 0 ) ? 1 : 0, 0 ); m_flNextPrimaryAttack = m_flNextSecondaryAttack = UTIL_WeaponTimeBase() + flCycleTime; diff --git a/dlls/aomdc/gmgeneral.cpp b/dlls/aomdc/gmgeneral.cpp index c4abfbab..d78a17bd 100644 --- a/dlls/aomdc/gmgeneral.cpp +++ b/dlls/aomdc/gmgeneral.cpp @@ -140,7 +140,7 @@ void CGMGeneral::PrimaryAttack() flags = 0; #endif - PLAYBACK_EVENT_FULL( flags, m_pPlayer->edict(), m_usGMGeneral, 0.0, (float *)&g_vecZero, (float *)&g_vecZero, vecDir.x, vecDir.y, 0, 0, 0, 0 ); + PLAYBACK_EVENT_FULL( flags, m_pPlayer->edict(), m_usGMGeneral, 0.0, g_vecZero, g_vecZero, vecDir.x, vecDir.y, 0, 0, 0, 0 ); m_flNextPrimaryAttack = UTIL_WeaponTimeBase() + 0.07; diff --git a/dlls/aomdc/hammer.cpp b/dlls/aomdc/hammer.cpp index d15b348f..978458cf 100644 --- a/dlls/aomdc/hammer.cpp +++ b/dlls/aomdc/hammer.cpp @@ -175,7 +175,7 @@ void CHammer::BigWhackThink() } #endif PLAYBACK_EVENT_FULL( FEV_NOTHOST, m_pPlayer->edict(), m_usHammer, - 0.0, (float *)&g_vecZero, (float *)&g_vecZero, 0, 0, 0, + 0.0, g_vecZero, g_vecZero, 0, 0, 0, 0.0, 0, 0.0 ); if ( tr.flFraction < 1.0 ) diff --git a/dlls/aomdc/knife.cpp b/dlls/aomdc/knife.cpp index 313ef1fe..7ce6029d 100644 --- a/dlls/aomdc/knife.cpp +++ b/dlls/aomdc/knife.cpp @@ -203,7 +203,7 @@ int CKnife::Swing( int fFirst ) #endif PLAYBACK_EVENT_FULL( FEV_NOTHOST, m_pPlayer->edict(), m_usKnife, - 0.0, (float *)&g_vecZero, (float *)&g_vecZero, 0, 0, 0, + 0.0, g_vecZero, g_vecZero, 0, 0, 0, 0.0, 0, 0.0 ); diff --git a/dlls/aomdc/mp5k.cpp b/dlls/aomdc/mp5k.cpp index 44574456..36155d8d 100644 --- a/dlls/aomdc/mp5k.cpp +++ b/dlls/aomdc/mp5k.cpp @@ -150,7 +150,7 @@ void CMP5K::PrimaryAttack() flags = 0; #endif - PLAYBACK_EVENT_FULL( flags, m_pPlayer->edict(), m_usMP5k, 0.0, (float *)&g_vecZero, (float *)&g_vecZero, vecDir.x, vecDir.y, 0, 0, 0, 0 ); + PLAYBACK_EVENT_FULL( flags, m_pPlayer->edict(), m_usMP5k, 0.0, g_vecZero, g_vecZero, vecDir.x, vecDir.y, 0, 0, 0, 0 ); m_flNextPrimaryAttack = UTIL_WeaponTimeBase() + 0.06; diff --git a/dlls/aomdc/p228.cpp b/dlls/aomdc/p228.cpp index bd37e00d..ed82f07d 100644 --- a/dlls/aomdc/p228.cpp +++ b/dlls/aomdc/p228.cpp @@ -139,7 +139,7 @@ void CP228::PrimaryAttack( void ) Vector vecDir = m_pPlayer->FireBulletsPlayer( 1, vecSrc, vecAiming, Vector( flSpread, flSpread, flSpread ), 8192, BULLET_PLAYER_9MM, 0, gSkillData.plrDmgP228, m_pPlayer->pev, m_pPlayer->random_seed ); - PLAYBACK_EVENT_FULL( flags, m_pPlayer->edict(), m_usFireP228, 0.0, (float *)&g_vecZero, (float *)&g_vecZero, vecDir.x, vecDir.y, 0, 0, ( m_iClip == 0 ) ? 1 : 0, 0 ); + PLAYBACK_EVENT_FULL( flags, m_pPlayer->edict(), m_usFireP228, 0.0, g_vecZero, g_vecZero, vecDir.x, vecDir.y, 0, 0, ( m_iClip == 0 ) ? 1 : 0, 0 ); m_flNextPrimaryAttack = UTIL_WeaponTimeBase() + 0.2f; diff --git a/dlls/aomdc/revolver.cpp b/dlls/aomdc/revolver.cpp index 073cf1e5..bb1f374f 100644 --- a/dlls/aomdc/revolver.cpp +++ b/dlls/aomdc/revolver.cpp @@ -137,7 +137,7 @@ void CRevolver::PrimaryAttack() flags = 0; #endif - PLAYBACK_EVENT_FULL( flags, m_pPlayer->edict(), m_usFireRevolver, 0.0, (float *)&g_vecZero, (float *)&g_vecZero, vecDir.x, vecDir.y, 0, 0, 0, 0 ); + PLAYBACK_EVENT_FULL( flags, m_pPlayer->edict(), m_usFireRevolver, 0.0, g_vecZero, g_vecZero, vecDir.x, vecDir.y, 0, 0, 0, 0 ); m_flNextPrimaryAttack = 0.9; m_flTimeWeaponIdle = UTIL_SharedRandomFloat( m_pPlayer->random_seed, 10, 15 ); diff --git a/dlls/aomdc/spear.cpp b/dlls/aomdc/spear.cpp index 949842aa..f31beb5f 100644 --- a/dlls/aomdc/spear.cpp +++ b/dlls/aomdc/spear.cpp @@ -198,7 +198,7 @@ void CSpear::BigSpearStab() #endif PLAYBACK_EVENT_FULL( 0, m_pPlayer->edict(), m_usSpear, - 0.0, (float *)&g_vecZero, (float *)&g_vecZero, 0, 0, 0, + 0.0, g_vecZero, g_vecZero, 0, 0, 0, 0.0, 0, 0.0 ); if ( tr.flFraction < 1.0 ) diff --git a/dlls/aomdc/uzi.cpp b/dlls/aomdc/uzi.cpp index adab8bd3..f94e45ff 100644 --- a/dlls/aomdc/uzi.cpp +++ b/dlls/aomdc/uzi.cpp @@ -147,7 +147,7 @@ void CUzi::PrimaryAttack() flags = 0; #endif - PLAYBACK_EVENT_FULL( flags, m_pPlayer->edict(), m_usUzi, 0.0, (float *)&g_vecZero, (float *)&g_vecZero, vecDir.x, vecDir.y, 0, 0, 0, 0 ); + PLAYBACK_EVENT_FULL( flags, m_pPlayer->edict(), m_usUzi, 0.0, g_vecZero, g_vecZero, vecDir.x, vecDir.y, 0, 0, 0, 0 ); m_flNextPrimaryAttack = UTIL_WeaponTimeBase() + 0.08;