shithub: rott

Download patch

ref: e886c4225eec28cd3f5da2d53bc2190eb7b8cdeb
parent: a8b8cbaf242fff3ea37888ef4ce0577564cc5925
author: LTCHIPS <ltchips994@gmail.com>
date: Mon May 21 11:02:00 EDT 2018

give player ammo code cleaning

--- a/rott/rt_game.c
+++ b/rott/rt_game.c
@@ -1358,11 +1358,11 @@
 
     M_LINKSTATE(ob, pstate);
 
-    int playerCurrentAmmo = (int) pstate->ammo;
+    int playerCurrentAmmo = pstate->ammo;
     
-    int ammoInItem = (int) item_pickup->ammo;
+    int ammoInItem = item_pickup->ammo;
     
-    int maxAmmoInWeapon = (int)stats[item_pickup->itemnumber].ammo;
+    int maxAmmoInWeapon = stats[item_pickup->itemnumber].ammo;
     
     
     //printf("playerCurrentAmmo: %d \n", playerCurrentAmmo);