Fix Spreadgun and Wallbuster not autoswitching on first pickup.

This commit is contained in:
Mari the Deer 2022-09-20 11:28:10 +02:00
commit f535873e0b
3 changed files with 4 additions and 2 deletions

View file

@ -1,3 +1,3 @@
[default]
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r481 \cu(Tue 20 Sep 11:27:54 CEST 2022)\c-";
SWWM_SHORTVER="\cw1.3pre r481 \cu(2022-09-20 11:27:54)\c-";
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r482 \cu(Tue 20 Sep 11:28:10 CEST 2022)\c-";
SWWM_SHORTVER="\cw1.3pre r482 \cu(2022-09-20 11:28:10)\c-";

View file

@ -30,6 +30,7 @@ Class Wallbuster : SWWMWeapon
{
Super.DoEffect();
// push back selection order if weapon is unloaded
if ( !bInitialized ) return;
for ( int i=0; i<25; i++ )
{
if ( !loaded[i] || fired[i] ) continue;

View file

@ -157,6 +157,7 @@ Class Spreadgun : SWWMWeapon
{
Super.DoEffect();
// push back selection order if weapon is unloaded
if ( !bInitialized ) return;
SelectionOrder = (chambered&&!fired)?default.SelectionOrder:1500;
}