From 16adcfff73efff0ce6cbb41e8c60d1905f66200c Mon Sep 17 00:00:00 2001 From: Clonkonaut Date: Sun, 14 Jan 2018 14:48:03 +0100 Subject: [PATCH] Detach any visible objects upon Death (#1974). --- planet/Objects.ocd/Clonk.ocd/Script.c | 3 +-- planet/Objects.ocd/Libraries.ocd/Inventory.ocd/Script.c | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/planet/Objects.ocd/Clonk.ocd/Script.c b/planet/Objects.ocd/Clonk.ocd/Script.c index 2082a6de5..faa5be845 100644 --- a/planet/Objects.ocd/Clonk.ocd/Script.c +++ b/planet/Objects.ocd/Clonk.ocd/Script.c @@ -169,8 +169,7 @@ protected func Death(int killed_by) } } CloseEyes(1); - UpdateAttach(); - + return true; } diff --git a/planet/Objects.ocd/Libraries.ocd/Inventory.ocd/Script.c b/planet/Objects.ocd/Libraries.ocd/Inventory.ocd/Script.c index c4f83a4d5..a7aea3278 100644 --- a/planet/Objects.ocd/Libraries.ocd/Inventory.ocd/Script.c +++ b/planet/Objects.ocd/Libraries.ocd/Inventory.ocd/Script.c @@ -417,6 +417,7 @@ func Ejection(object obj) this->~OnSlotEmpty(handpos); obj->~Deselection(this, handpos); } + this->~UpdateAttach(); } // we have over-weight? Put the next unindexed object inside that slot