| 2543 | {"NapalmTank", NAPALM_INDEX, TXI_MSG_NAPALMFUEL, TXI_MSG_NAPALMFULL}}; |
| 2544 | #define NUM_POWERUP_TYPES_AMMO (sizeof(powerup_data_ammo) / sizeof(*powerup_data_ammo)) |
| 2545 | void ShowAmmoAddedMessage(int weapon_index, int msg_index, int added) { |
| 2546 | int added_frac = 0; |
| 2547 | if (Ships[Players[Player_num].ship_index].fire_flags[weapon_index] & SFF_TENTHS) { |
| 2548 | added_frac = added; |
| 2549 | while (added_frac >= 100) |
| 2550 | added_frac -= 100; |
| 2551 | while (added_frac >= 10) |
| 2552 | added_frac -= 10; |
| 2553 | added /= 10; |
| 2554 | } |
| 2555 | AddFilteredHUDMessage(TXT(msg_index), added, added_frac); |
| 2556 | } |
| 2557 | // See if we should select the specified weapon |
| 2558 | void CheckForWeaponSelect(int id, int weapon_index) { |
| 2559 | if (id == Player_num) { |
no test coverage detected