CSMultiplayerRules: use Destroy() instead of plain remove() on NSEntity derivatives
This commit is contained in:
parent
c7d4f3631a
commit
ff59be9392
1 changed files with 6 additions and 1 deletions
|
@ -485,7 +485,12 @@ CSMultiplayerRules::RestartRound(int iWipe)
|
|||
|
||||
/* clear the corpses/items/bombs */
|
||||
for (entity eFind = world; (eFind = find(eFind, ::classname, "remove_me"));) {
|
||||
remove(eFind);
|
||||
if (eFind.identity) {
|
||||
NSEntity e = (NSEntity)eFind;
|
||||
e.Destroy();
|
||||
} else {
|
||||
remove(eFind);
|
||||
}
|
||||
}
|
||||
for (entity eFind = world; (eFind = find(eFind, ::classname, "tempdecal"));) {
|
||||
decal dec = (decal)eFind;
|
||||
|
|
Loading…
Reference in a new issue