Extinguish transferred contents on respawn

stable-7
Sven Eberhardt 2016-01-16 14:07:20 -05:00 committed by Maikel de Vries
parent 21390f4c29
commit 1bba764219
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);
}