(M_TORP_SHELLS): New.

(perform_mission, torp, fire_torp, quiet_bigdef, use_ammo): Use it.
Closes #917459.
This commit is contained in:
Markus Armbruster 2004-05-09 20:55:30 +00:00
parent a6bd408323
commit d7e697b1f9
4 changed files with 26 additions and 24 deletions

View file

@ -180,7 +180,7 @@ struct mchrstr {
#define M_CHOPPER bit(16) /* can hold choppers */
#define M_OILER bit(17) /* can re-fuel ships */
#define M_SUPPLY bit(18) /* Can supply units/sects/ships */
/* M_XUNIT will be automatically set in init_global() if m_nland > 0 */
/* M_UNIT will be automatically set in init_global() if m_nland > 0 */
#define M_UNIT bit(19) /* Can carry units */
#define M_ANTIMISSILE bit(20) /* Shoot down missile */
@ -218,4 +218,8 @@ struct mlist {
#define CN_CONSTRUCTION (2)
#define CN_ERROR (-1)
enum {
M_TORP_SHELLS = 3 /* number of shells used by a torpedo */
};
#endif /* _SHIP_H_ */