Don't create a bullet that is BT_NONE when using combined guns.

This commit is contained in:
Steve 2016-05-13 08:36:26 +01:00
parent 622a3e0d5d
commit 3496ff251a
1 changed files with 1 additions and 1 deletions

View File

@ -399,7 +399,7 @@ void fireGuns(Entity *owner)
for (i = 0 ; i < MAX_FIGHTER_GUNS ; i++) for (i = 0 ; i < MAX_FIGHTER_GUNS ; i++)
{ {
if (owner->guns[i].type == owner->selectedGunType || (owner->guns[i].type != BT_NONE && owner->combinedGuns)) if (owner->guns[i].type != BT_NONE && (owner->guns[i].type == owner->selectedGunType || owner->combinedGuns))
{ {
s = sin(TO_RAIDANS(owner->angle)); s = sin(TO_RAIDANS(owner->angle));
c = cos(TO_RAIDANS(owner->angle)); c = cos(TO_RAIDANS(owner->angle));