WEAPON_RPG: Gives 2 rockets on pickup.
This commit is contained in:
parent
512b1ac2ee
commit
9e62ff350a
1 changed files with 2 additions and 1 deletions
|
@ -74,11 +74,12 @@ int w_rpg_pickup(player pl, int new, int startammo)
|
|||
|
||||
if (new) {
|
||||
pl.rpg_mag = 1;
|
||||
pl.ammo_rocket = bound(0, pl.ammo_rocket + 1, MAX_A_ROCKET);
|
||||
return (1);
|
||||
}
|
||||
|
||||
if (pl.ammo_rocket < MAX_A_ROCKET) {
|
||||
pl.ammo_rocket = bound(0, pl.ammo_rocket + 1, MAX_A_ROCKET);
|
||||
pl.ammo_rocket = bound(0, pl.ammo_rocket + 2, MAX_A_ROCKET);
|
||||
} else {
|
||||
if (!new)
|
||||
return (0);
|
||||
|
|
Loading…
Reference in a new issue