From c4727c1dc326823bd29dc54e227a2285d6c39902 Mon Sep 17 00:00:00 2001 From: Lukasz Wlasinksi Date: Tue, 30 Nov 2004 15:46:09 +0000 Subject: [PATCH] fixed grenade problems ( returning wrong (older) owner ) --- dlls/csx/source/CMisc.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dlls/csx/source/CMisc.cpp b/dlls/csx/source/CMisc.cpp index a9569a77..bc664d8a 100755 --- a/dlls/csx/source/CMisc.cpp +++ b/dlls/csx/source/CMisc.cpp @@ -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; -} \ No newline at end of file +} +