Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(maxMagazineAmmo - magazine > currentAmmo)
- {
- magazine += currentAmmo;
- currentAmmo = 0;
- }
- else
- {
- magazine += maxMagazineAmmo - magazine;
- currentAmmo -= maxMagazineAmmo - magazine;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement