- fixed: Remove ccmd now no longer removes owned inventory objects (that's what the "take" ccmd is for)
This commit is contained in:
parent
6d3b26f94c
commit
3b55406302
1 changed files with 5 additions and 0 deletions
|
|
@ -2109,6 +2109,11 @@ static int RemoveClass(const PClass *cls)
|
|||
player = true;
|
||||
continue;
|
||||
}
|
||||
// [SP] Don't remove owned inventory objects.
|
||||
if (static_cast<AInventory *>(actor)->Owner != NULL)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
removecount++;
|
||||
actor->ClearCounters();
|
||||
actor->Destroy();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue