More-accurate BulHit.cpp variable arrangement

This commit is contained in:
Clownacy 2020-01-07 05:37:40 +00:00
parent 1ea4031de8
commit f33b7b386b

View file

@ -47,12 +47,12 @@ int JudgeHitBulletBlock(int x, int y, BULLET *bul)
int JudgeHitBulletBlock2(int x, int y, unsigned char *atrb, BULLET *bul) int JudgeHitBulletBlock2(int x, int y, unsigned char *atrb, BULLET *bul)
{ {
int i;
int workX;
int workY;
int hit = 0;
BOOL block[4]; BOOL block[4];
int workX, workY;
int hit, i;
hit = 0;
if (bul->bbits & 0x40) if (bul->bbits & 0x40)
{ {
for (i = 0; i < 4; ++i) for (i = 0; i < 4; ++i)
@ -324,12 +324,11 @@ int JudgeHitBulletTriangleH(int x, int y, BULLET *bul)
void HitBulletMap(void) void HitBulletMap(void)
{ {
int i; int x, y;
int j;
int x;
int y;
unsigned char atrb[4]; unsigned char atrb[4];
int i, j;
for (i = 0; i < BULLET_MAX; ++i) for (i = 0; i < BULLET_MAX; ++i)
{ {
int offx[4]; int offx[4];