fix: do not remove player_weaponstrip on regamedll (not affected by this bug)

This commit is contained in:
dmitry 2022-04-08 17:57:19 +03:00
commit 1eac0f8be8
No known key found for this signature in database
GPG key ID: 8297CE728B7A7E37

View file

@ -105,7 +105,7 @@ void Game::levelInitialize (edict_t *entities, int max) {
if (is (GameFlags::Legacy) && strings.isEmpty (ent->v.target.chars ())) { if (is (GameFlags::Legacy) && strings.isEmpty (ent->v.target.chars ())) {
ent->v.target = ent->v.targetname = engfuncs.pfnAllocString ("fake"); ent->v.target = ent->v.targetname = engfuncs.pfnAllocString ("fake");
} }
else { else if (!is (GameFlags::ReGameDLL)) {
engfuncs.pfnRemoveEntity (ent); engfuncs.pfnRemoveEntity (ent);
} }
} }