From d18f3249b48100a2de406ca2f6a6fa9378a819b6 Mon Sep 17 00:00:00 2001 From: Marisa Kirisame Date: Wed, 17 Feb 2021 09:37:08 +0100 Subject: [PATCH] Reduce the 10 overlapping backpacks in Doom 2 MAP07 to one. --- language.version | 4 ++-- zscript/swwm_compat.zsc | 13 ++++++++++++- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/language.version b/language.version index 90b742b9f..8dff97407 100644 --- a/language.version +++ b/language.version @@ -1,3 +1,3 @@ [default] -SWWM_MODVER="\chSWWM \czGZ\c- \cw0.9.11b-pre r281 \cu(Tue 16 Feb 22:59:42 CET 2021)\c-"; -SWWM_SHORTVER="\cw0.9.11b-pre r281 \cu(2021-02-16 22:59:42)\c-"; +SWWM_MODVER="\chSWWM \czGZ\c- \cw0.9.11b-pre r282 \cu(Wed 17 Feb 09:37:08 CET 2021)\c-"; +SWWM_SHORTVER="\cw0.9.11b-pre r282 \cu(2021-02-17 09:37:08)\c-"; diff --git a/zscript/swwm_compat.zsc b/zscript/swwm_compat.zsc index b093b71d8..b8eb325e5 100644 --- a/zscript/swwm_compat.zsc +++ b/zscript/swwm_compat.zsc @@ -21,6 +21,8 @@ Class SWWMLevelCompatibility : LevelPostProcessor protected void Apply( Name checksum, String mapname ) { int numcol = 6; + int ncellsa = 0, ncellsb = 0; + int nbackpack = 0; switch ( checksum ) { case 'none': @@ -65,7 +67,6 @@ Class SWWMLevelCompatibility : LevelPostProcessor case 'E45AA3BE411845AA0DEE7CA5DAAB65FE': // reduce OBSCENELY EXCESSIVE number of cell packs in voodoo doll conveyors (400), which will cause immense lag when replaced with mod ammo // unsurprisingly, this actually makes the map go from completely unplayable to having perfectly smooth performance (gee, I wonder why) - int ncellsa = 0, ncellsb = 0; for ( int i=0; i