ref: 6cd2a498295ab952c18ed8dff83b35a98a93ce95
parent: 9d8018e901e1380042c26ce30697c64c0b6087ad
author: Gabriel Ravier <gabravier@gmail.com>
date: Mon Sep 23 04:46:38 EDT 2019
Corrected comment Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
--- a/src/ArmsItem.cpp
+++ b/src/ArmsItem.cpp
@@ -183,7 +183,7 @@
if (arms_num == 0 && item_num == 0)
return; // Empty inventory
- // True if we're currently changing inventory mode (weapons->items / items->weapons)
+ /// True if we're currently changing cursor position
BOOL bChange = FALSE;
if (gCampActive == FALSE)
@@ -538,10 +538,11 @@
{
gArmsData[gSelectedArms].num += num;
+ // Cap the ammo to the maximum ammunition
if (gArmsData[gSelectedArms].num > gArmsData[gSelectedArms].max_num)
gArmsData[gSelectedArms].num = gArmsData[gSelectedArms].max_num;
- return TRUE;
+ return TRUE; // Always successfull
}
void FullArmsEnergy()