ref: e459364a33054107d5a74800e90a94f4809cae5b
parent: cef901792ba2b7791c573d60cfd906ee4c13e5bb
author: Clownacy <Clownacy@users.noreply.github.com>
date: Tue Jan 7 16:58:35 EST 2020
More-accurate Shoot.cpp variable arrangement
--- a/src/Shoot.cpp
+++ b/src/Shoot.cpp
@@ -11,7 +11,6 @@
#include "Sound.h"
int empty;
-int spur_charge;
void ShootBullet_Frontia1(int level)
{
@@ -250,6 +249,7 @@
void ShootBullet_Machinegun1(int level)
{
int bul_no;
+ static int wait;
if (CountArmsBullet(4) > 4)
return;
@@ -355,7 +355,6 @@
}
else
{
- static int wait = 0;
++wait;
if (gMC.equip & 8)
@@ -896,6 +895,8 @@
}
}
+int spur_charge;
+
void ResetSpurCharge(void)
{
spur_charge = 0;
@@ -906,9 +907,9 @@
void ShootBullet_Spur(int level)
{
- static BOOL bMax;
- BOOL bShot;
int bul_no;
+ BOOL bShot;
+ static BOOL bMax;
bShot = FALSE;
@@ -1058,11 +1059,12 @@
void ShootBullet(void)
{
+ static int soft_rensha; // 'rensha' is Japanese for 'rapid-fire', apparently
+
if (empty != 0)
--empty;
// Only let the player shoot every 4 frames
- static int soft_rensha; // 'rensha' is Japanese for 'rapid-fire', apparently
if (soft_rensha != 0)
--soft_rensha;