diff options
Diffstat (limited to 'src/strife/p_user.c')
-rw-r--r-- | src/strife/p_user.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/strife/p_user.c b/src/strife/p_user.c index 78b8df03..bf082e99 100644 --- a/src/strife/p_user.c +++ b/src/strife/p_user.c @@ -457,7 +457,9 @@ void P_PlayerThink (player_t* player) { if(player->weaponowned[wp_torpedo] && player->readyweapon == wp_mauler) { - if(player->ammo[weaponinfo[am_cell].ammo] >= 30) + // haleyjd 20140924: bug fix - using wrong enum value am_cell + // caused this to check the missile launcher for rocket ammo + if(player->ammo[weaponinfo[wp_torpedo].ammo] >= 30) newweapon = wp_torpedo; } } |