From 844a6393a42e7ce5a95a3ef805259c0fa53b0c5a Mon Sep 17 00:00:00 2001 From: Marisa the Magician Date: Mon, 8 Aug 2022 13:46:32 +0200 Subject: [PATCH] Fix keyless achievement detection. --- language.version | 4 ++-- zscript/handler/swwm_handler_worldload.zsc | 19 +++++++++---------- 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/language.version b/language.version index bd66c0e40..bdc49c4b3 100644 --- a/language.version +++ b/language.version @@ -1,3 +1,3 @@ [default] -SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r279 \cu(Mon 8 Aug 13:09:00 CEST 2022)\c-"; -SWWM_SHORTVER="\cw1.3pre r279 \cu(2022-08-08 13:09:00)\c-"; +SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r280 \cu(Mon 8 Aug 13:46:32 CEST 2022)\c-"; +SWWM_SHORTVER="\cw1.3pre r280 \cu(2022-08-08 13:46:32)\c-"; diff --git a/zscript/handler/swwm_handler_worldload.zsc b/zscript/handler/swwm_handler_worldload.zsc index 4dfe01095..d20fc0ef9 100644 --- a/zscript/handler/swwm_handler_worldload.zsc +++ b/zscript/handler/swwm_handler_worldload.zsc @@ -26,7 +26,7 @@ extend Class SWWMHandler // for minimap Array ffsectors; - Array > mapkeys; + bool maphaskeys; // level end stats override void WorldUnloaded( WorldEvent e ) @@ -113,19 +113,18 @@ extend Class SWWMHandler // the playerpawn will know what to do with this in its PreTravelled() } // did we complete this map without collecting any of its keys? (doesn't work for hubs) - if ( (mapkeys.Size() > 0) && !(level.clusterflags&LevelLocals.CLUSTER_HUB) ) + if ( maphaskeys && !(level.clusterflags&LevelLocals.CLUSTER_HUB) ) { bool collected = false; - for ( int i=0; i