Files
fs2open.github.com/code
MageKing17 84ea99c371 Always record primary bank ammo capacity during ship creation. (#4217)
`ship_set_default_weapons()` (which is called by `ship_create()`) was only setting `swp->primary_bank_capacity` for a bank if the default weapon for that bank was ballistic; if the ship was then equipped with an ammo-using primary and the `set-primary-ammo` SEXP was used on it, it would think the bank had a capacity of zero, resulting in 0 ammo.

This commit simply moves the assignment outside of the conditional, so that primary bank capacities are always recorded in the `ship_weapon` class.
2022-04-25 19:25:31 +00:00
..
2020-10-19 03:31:01 -04:00
2021-03-14 23:43:22 -03:00
2022-04-10 22:12:42 -05:00
2018-07-15 19:37:24 +02:00
2022-01-19 01:35:32 -05:00
2022-04-10 14:20:06 -04:00
2022-04-08 22:02:34 -04:00
2022-04-09 13:23:03 -04:00
2019-07-20 16:12:45 -04:00
2022-04-12 21:35:06 -04:00
2022-03-19 16:52:54 -04:00
2022-02-10 22:43:59 +09:00
2022-04-24 17:12:46 -05:00
2016-08-12 16:13:50 -07:00
2019-11-03 16:27:23 -05:00
2022-04-02 18:45:46 -04:00
2020-06-06 23:24:08 +02:00
2020-10-06 14:31:03 -04:00
2018-04-25 11:57:55 +02:00
2021-10-20 15:31:23 -04:00
2022-02-12 19:34:01 -05:00
2016-07-22 12:07:19 +02:00