mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-24 13:55:36 +03:00
map change crash fixed
This commit is contained in:
parent
064853d9d5
commit
0b9f3d8e8c
@ -227,8 +227,6 @@ void CPlayer::saveKill(CPlayer* pVictim, int wweapon, int hhs, int ttk){
|
||||
|
||||
void CPlayer::saveHit(CPlayer* pVictim, int wweapon, int ddamage, int bbody){
|
||||
|
||||
if ( index == pVictim->index ) return;
|
||||
|
||||
if ( ignoreBots(pEdict,pVictim->pEdict) )
|
||||
return;
|
||||
|
||||
|
@ -62,7 +62,7 @@
|
||||
#define MAX_TRACE 6
|
||||
|
||||
struct traceVault {
|
||||
char * szName;
|
||||
char szName[16];
|
||||
int iId;
|
||||
int iAction;
|
||||
float fDel;
|
||||
|
@ -169,6 +169,9 @@ void ServerDeactivate() {
|
||||
|
||||
g_rank.saveRank( MF_BuildPathname("%s",get_localinfo("dodstats") ) );
|
||||
|
||||
g_damage_info.clear();
|
||||
g_death_info.clear();
|
||||
|
||||
// clear custom weapons info
|
||||
for ( i=DODMAX_WEAPONS-DODMAX_CUSTOMWPNS;i<DODMAX_WEAPONS;i++)
|
||||
weaponData[i].needcheck = false;
|
||||
@ -373,6 +376,4 @@ void FN_AMXX_Detach() {
|
||||
g_rank.clear();
|
||||
g_grenades.clear();
|
||||
g_rank.unloadCalc();
|
||||
g_damage_info.clear();
|
||||
g_death_info.clear();
|
||||
}
|
||||
|
@ -169,11 +169,9 @@ void Client_Health_End(void* mValue){
|
||||
|
||||
g_damage_info.exec( pAttacker->index, mPlayer->index, damage, weapon, aim, TA );
|
||||
|
||||
if ( mPlayer->IsAlive() )
|
||||
return;
|
||||
|
||||
if ( !mPlayer->IsAlive() ){
|
||||
pAttacker->saveKill(mPlayer,weapon,( aim == 1 ) ? 1:0 ,TA);
|
||||
g_death_info.exec( pAttacker->index, mPlayer->index, weapon, aim, TA );
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user