Extinguish transferred contents on respawn

objectmenu
Sven Eberhardt 2016-01-16 14:07:20 -05:00
parent a5af9089a8
commit 0b3c29a95c
1 changed files with 7 additions and 0 deletions

View File

@ -122,7 +122,14 @@ private func TransferInventory(object from, object to)
while (i--)
if (contents = from->Contents(i))
if (contents->~IsDroppedOnDeath(from))
{
contents->Exit();
}
else
{
// The new clonk doesn't burn. To be consistent, also extinguish contents
contents->Extinguish();
}
return to->GrabContents(from);
}