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

@ -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;
}
}
}