mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 06:15:37 +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){
|
void CPlayer::saveHit(CPlayer* pVictim, int wweapon, int ddamage, int bbody){
|
||||||
|
|
||||||
if ( index == pVictim->index ) return;
|
|
||||||
|
|
||||||
if ( ignoreBots(pEdict,pVictim->pEdict) )
|
if ( ignoreBots(pEdict,pVictim->pEdict) )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -62,7 +62,7 @@
|
|||||||
#define MAX_TRACE 6
|
#define MAX_TRACE 6
|
||||||
|
|
||||||
struct traceVault {
|
struct traceVault {
|
||||||
char * szName;
|
char szName[16];
|
||||||
int iId;
|
int iId;
|
||||||
int iAction;
|
int iAction;
|
||||||
float fDel;
|
float fDel;
|
||||||
|
@ -169,6 +169,9 @@ void ServerDeactivate() {
|
|||||||
|
|
||||||
g_rank.saveRank( MF_BuildPathname("%s",get_localinfo("dodstats") ) );
|
g_rank.saveRank( MF_BuildPathname("%s",get_localinfo("dodstats") ) );
|
||||||
|
|
||||||
|
g_damage_info.clear();
|
||||||
|
g_death_info.clear();
|
||||||
|
|
||||||
// clear custom weapons info
|
// clear custom weapons info
|
||||||
for ( i=DODMAX_WEAPONS-DODMAX_CUSTOMWPNS;i<DODMAX_WEAPONS;i++)
|
for ( i=DODMAX_WEAPONS-DODMAX_CUSTOMWPNS;i<DODMAX_WEAPONS;i++)
|
||||||
weaponData[i].needcheck = false;
|
weaponData[i].needcheck = false;
|
||||||
@ -373,6 +376,4 @@ void FN_AMXX_Detach() {
|
|||||||
g_rank.clear();
|
g_rank.clear();
|
||||||
g_grenades.clear();
|
g_grenades.clear();
|
||||||
g_rank.unloadCalc();
|
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 );
|
g_damage_info.exec( pAttacker->index, mPlayer->index, damage, weapon, aim, TA );
|
||||||
|
|
||||||
if ( mPlayer->IsAlive() )
|
if ( !mPlayer->IsAlive() ){
|
||||||
return;
|
|
||||||
|
|
||||||
pAttacker->saveKill(mPlayer,weapon,( aim == 1 ) ? 1:0 ,TA);
|
pAttacker->saveKill(mPlayer,weapon,( aim == 1 ) ? 1:0 ,TA);
|
||||||
g_death_info.exec( pAttacker->index, mPlayer->index, weapon, aim, TA );
|
g_death_info.exec( pAttacker->index, mPlayer->index, weapon, aim, TA );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user