fixed grenade problems ( returning wrong (older) owner )
This commit is contained in:
parent
4901dee86d
commit
c4727c1dc3
@ -25,7 +25,7 @@ bool Grenades::find( edict_t* enemy, CPlayer** p, int* type )
|
|||||||
bool found = false;
|
bool found = false;
|
||||||
Obj* a = head;
|
Obj* a = head;
|
||||||
while ( a ){
|
while ( a ){
|
||||||
if ( a->time > gpGlobals->time ) {
|
if ( a->time > gpGlobals->time && !found ) {
|
||||||
if ( a->grenade == enemy ) {
|
if ( a->grenade == enemy ) {
|
||||||
found = true;
|
found = true;
|
||||||
*p = a->player;
|
*p = a->player;
|
||||||
@ -297,3 +297,4 @@ bool isModuleActive(){
|
|||||||
return true;
|
return true;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user