Added a few comments and corrected a few things

Also removed a few trailing spaces
Also added spaces after // and ; where it improves readability (also yes I used a regex for this : "(//|\;)[^\ ]")

Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
This commit is contained in:
Gabriel Ravier 2019-05-07 11:06:53 +02:00
parent 1f055ccfe8
commit 0ed6891879

View file

@ -57,6 +57,7 @@ BOOL AddArmsData(long code, long max_num)
gArmsData[i].level = 1;
}
// Set weapon and ammo
gArmsData[i].code = code;
gArmsData[i].max_num += max_num;
gArmsData[i].num += max_num;
@ -85,6 +86,7 @@ BOOL SubArmsData(long code)
for (i += 1; i < ARMS_MAX; ++i)
gArmsData[i - 1] = gArmsData[i];
// Clear farthest weapon and select first
gArmsData[i - 1].code = 0;
gSelectedArms = 0;
return TRUE;