From ebbc94280e6dda47375673961446e701da4dd8dc Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 17 May 2021 11:51:06 +0200 Subject: [PATCH] - fixed: The PrisonPass's TryPickup method did not properly report successful pickup. --- wadsrc/static/zscript/actors/strife/strifeitems.zs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wadsrc/static/zscript/actors/strife/strifeitems.zs b/wadsrc/static/zscript/actors/strife/strifeitems.zs index f87749315a..3a67e1479a 100644 --- a/wadsrc/static/zscript/actors/strife/strifeitems.zs +++ b/wadsrc/static/zscript/actors/strife/strifeitems.zs @@ -559,10 +559,10 @@ class PrisonPass : Key override bool TryPickup (in out Actor toucher) { - Super.TryPickup (toucher); + bool res = Super.TryPickup (toucher); Door_Open(223, 16); toucher.GiveInventoryType ("QuestItem10"); - return true; + return res; } //============================================================================