From 1eac0f8be83a7f945744e95e4adbaaf67996252a Mon Sep 17 00:00:00 2001 From: dmitry Date: Fri, 8 Apr 2022 17:57:19 +0300 Subject: [PATCH] fix: do not remove player_weaponstrip on regamedll (not affected by this bug) --- src/engine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine.cpp b/src/engine.cpp index 5a9ceaf..d53dd7d 100644 --- a/src/engine.cpp +++ b/src/engine.cpp @@ -105,7 +105,7 @@ void Game::levelInitialize (edict_t *entities, int max) { if (is (GameFlags::Legacy) && strings.isEmpty (ent->v.target.chars ())) { ent->v.target = ent->v.targetname = engfuncs.pfnAllocString ("fake"); } - else { + else if (!is (GameFlags::ReGameDLL)) { engfuncs.pfnRemoveEntity (ent); } }