From dfa063e310438792755e491716fab4e823f089b7 Mon Sep 17 00:00:00 2001
From: havoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Date: Wed, 12 Nov 2003 08:44:54 +0000
Subject: [PATCH] make quake completable again (killtarget problem with double
 remove call, now just a developer warning instead of an error)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3638 d7cf8633-e32d-0410-b094-e92efae38249
---
 pr_cmds.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/pr_cmds.c b/pr_cmds.c
index 4f1c3b0c..1fa832fd 100644
--- a/pr_cmds.c
+++ b/pr_cmds.c
@@ -1127,8 +1127,9 @@ void PF_Remove (void)
 		Host_Error("remove: tried to remove world\n");
 	if (NUM_FOR_EDICT(ed) <= svs.maxclients)
 		Host_Error("remove: tried to remove a client\n");
-	if (ed->e->free)
-		Host_Error("remove: tried to remove an entity that was already removed\n");
+	// LordHavoc: not an error because id1 progs did this in some cases (killtarget removes entities, even if they are already removed in some cases...)
+	if (ed->e->free && developer.integer)
+		Con_Printf("remove: tried to remove an entity that was already removed\n");
 	ED_Free (ed);
 }
 
-- 
2.39.5