forked from Mirrors/openclonk
Extinguish transferred contents on respawn
parent
21390f4c29
commit
1bba764219
|
@ -122,7 +122,14 @@ private func TransferInventory(object from, object to)
|
||||||
while (i--)
|
while (i--)
|
||||||
if (contents = from->Contents(i))
|
if (contents = from->Contents(i))
|
||||||
if (contents->~IsDroppedOnDeath(from))
|
if (contents->~IsDroppedOnDeath(from))
|
||||||
|
{
|
||||||
contents->Exit();
|
contents->Exit();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// The new clonk doesn't burn. To be consistent, also extinguish contents
|
||||||
|
contents->Extinguish();
|
||||||
|
}
|
||||||
return to->GrabContents(from);
|
return to->GrabContents(from);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue