fixed grenade problems ( returning wrong (older) owner )

This commit is contained in:
Lukasz Wlasinksi 2004-11-30 15:46:09 +00:00
parent 4901dee86d
commit c4727c1dc3

View File

@ -25,7 +25,7 @@ bool Grenades::find( edict_t* enemy, CPlayer** p, int* type )
bool found = false;
Obj* a = head;
while ( a ){
if ( a->time > gpGlobals->time ) {
if ( a->time > gpGlobals->time && !found ) {
if ( a->grenade == enemy ) {
found = true;
*p = a->player;
@ -296,4 +296,5 @@ bool isModuleActive(){
if ( !(int)CVAR_GET_FLOAT("csstats_pause") )
return true;
return false;
}
}