From 05c2e9ad927b6695aa0003ba3ef5d24e4d0a9d11 Mon Sep 17 00:00:00 2001 From: mittorn Date: Tue, 14 Aug 2018 11:38:49 +0000 Subject: [PATCH] Fix ent_fire single entity processing --- dlls/enttools.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dlls/enttools.cpp b/dlls/enttools.cpp index 485e89d9..1db9ce12 100644 --- a/dlls/enttools.cpp +++ b/dlls/enttools.cpp @@ -571,7 +571,12 @@ void Ent_Fire_f( edict_t *player ) } if( !Ent_CheckFire( player, ent, CMD_ARGV( 2 ) ) ) - continue; + { + if( !single ) + continue; + else + break; + } Ent_ClientPrintf( player, "entity %i\n", i );