Upcasting args to cell before passing to MF_ExecuteForward

This commit is contained in:
Pavol Marko
2005-10-18 21:17:12 +00:00
parent c8d69c41bc
commit d2fb486e70
3 changed files with 20 additions and 12 deletions

View File

@ -99,12 +99,14 @@ void Client_Damage_End(void* mValue){
if ( (mPlayer->teamId == pAttacker->teamId) && (mPlayer != pAttacker) )
TA = 1;
MF_ExecuteForward( iFDamage,pAttacker->index , mPlayer->index , damage, weapon, aim, TA );
MF_ExecuteForward( iFDamage, static_cast<cell>(pAttacker->index) , static_cast<cell>(mPlayer->index) ,
static_cast<cell>(damage), static_cast<cell>(weapon), static_cast<cell>(aim), static_cast<cell>(TA) );
if ( !mPlayer->IsAlive() ){
if ( weapon != CSW_C4 )
pAttacker->saveKill(mPlayer,weapon,( aim == 1 ) ? 1:0 ,TA);
MF_ExecuteForward( iFDeath,pAttacker->index, mPlayer->index, weapon, aim, TA );
MF_ExecuteForward( iFDeath, static_cast<cell>(pAttacker->index), static_cast<cell>(mPlayer->index),
static_cast<cell>(weapon), static_cast<cell>(aim), static_cast<cell>(TA) );
}
}