Fix hack that breaks ammo drops from sold weapons.

This commit is contained in:
Mari the Deer 2022-06-07 19:30:57 +02:00
commit 4e47d7d97e
3 changed files with 8 additions and 14 deletions

View file

@ -1,3 +1,3 @@
[default]
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r101 \cu(Tue 7 Jun 18:27:52 CEST 2022)\c-";
SWWM_SHORTVER="\cw1.3pre r101 \cu(2022-06-07 18:27:52)\c-";
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r102 \cu(Tue 7 Jun 19:30:57 CEST 2022)\c-";
SWWM_SHORTVER="\cw1.3pre r102 \cu(2022-06-07 19:30:57)\c-";

View file

@ -220,10 +220,8 @@ Class SWWMWeapon : Weapon abstract
if ( dropme > 0 )
{
// hacky, but it works
let a = Ammo(Spawn(AmmoType1,Owner.pos));
a.Owner = Owner;
a.Amount = dropme;
a.CreateTossable(dropme);
ownedWeapon.Ammo1.CreateTossable(dropme);
ownedWeapon.Ammo1.Amount += dropme;
}
}
}
@ -258,10 +256,8 @@ Class SWWMWeapon : Weapon abstract
if ( dropme > 0 )
{
// hacky, but it works
let a = Ammo(Spawn(AmmoType2,Owner.pos));
a.Owner = Owner;
a.Amount = dropme;
a.CreateTossable(dropme);
ownedWeapon.Ammo2.CreateTossable(dropme);
ownedWeapon.Ammo2.Amount += dropme;
}
}
}

View file

@ -79,10 +79,8 @@ Class CandyGun : SWWMWeapon
if ( dropme > 0 )
{
// hacky, but it works
let a = Ammo(Spawn(AmmoType1,Owner.pos));
a.Owner = Owner;
a.Amount = dropme;
a.CreateTossable(dropme);
ownedWeapon.Ammo1.CreateTossable(dropme);
ownedWeapon.Ammo1.Amount += dropme;
}
}
}