From 16f8009f2f6ee4bcde5090c2f6eda501a73ad44b Mon Sep 17 00:00:00 2001 From: flowtron Date: Sun, 25 Nov 2007 13:10:25 +0000 Subject: [PATCH] magreserve git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1445 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/weapon.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/src/weapon.cpp b/source/src/weapon.cpp index 92042a6f..da95e705 100644 --- a/source/src/weapon.cpp +++ b/source/src/weapon.cpp @@ -71,12 +71,14 @@ void shiftweapon(int s) int currentprimary() { return player1->primary; } int curweapon() { return player1->gunselect; } int magcontent(int gun) { if(gun > 0 && gun < NUMGUNS) return player1->mag[gun]; else return -1;} +int magreserve(int gun) { if(gun > 0 && gun < NUMGUNS) return player1->ammo[gun]; else return -1;} // MeatROme COMMAND(weapon, ARG_1INT); COMMAND(shiftweapon, ARG_1INT); COMMAND(currentprimary, ARG_1EST); COMMAND(curweapon, ARG_1EXP); COMMAND(magcontent, ARG_1EXP); +COMMAND(magreserve, ARG_1EXP); // MeatROme VAR(scopefov, 5, 50, 50); bool scoped = false;