Advertisement
Guest User

Untitled

a guest
Jun 20th, 2018
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. if(maxMagazineAmmo - magazine > currentAmmo)
  2. {
  3. magazine += currentAmmo;
  4. currentAmmo = 0;
  5. }
  6. else
  7. {
  8. magazine += maxMagazineAmmo - magazine;
  9. currentAmmo -= maxMagazineAmmo - magazine;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement