forked from Mirrors/openclonk
Extinguish transferred contents on respawn
parent
a5af9089a8
commit
0b3c29a95c
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue