See if we should select the specified weapon
| 2556 | } |
| 2557 | // See if we should select the specified weapon |
| 2558 | void CheckForWeaponSelect(int id, int weapon_index) { |
| 2559 | if (id == Player_num) { |
| 2560 | bool select_new; |
| 2561 | if (weapon_index < SECONDARY_INDEX) |
| 2562 | select_new = AutoSelectWeapon(PW_PRIMARY, weapon_index); |
| 2563 | else |
| 2564 | select_new = AutoSelectWeapon(PW_SECONDARY, weapon_index); |
| 2565 | if (!select_new) { |
| 2566 | AddFilteredHUDMessage("%s", TXT(Static_weapon_names_msg[weapon_index])); |
| 2567 | } |
| 2568 | } |
| 2569 | } |
| 2570 | extern uint8_t AutomapVisMap[MAX_ROOMS]; |
| 2571 | // New spiffy table-based code |
| 2572 | bool HandleWeaponPowerups(char *pname, msafe_struct *mstruct, uint8_t *pickup) { |
no test coverage detected