From d4bdf019580634f844b320d1fe8a73a345b9ffe6 Mon Sep 17 00:00:00 2001 From: nukeykt Date: Wed, 2 Oct 2019 02:59:20 +0900 Subject: [PATCH] Fix bullets --- source/exhumed/src/bullet.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/source/exhumed/src/bullet.cpp b/source/exhumed/src/bullet.cpp index bb97a3014..50ba9ed75 100644 --- a/source/exhumed/src/bullet.cpp +++ b/source/exhumed/src/bullet.cpp @@ -38,7 +38,7 @@ struct Bullet short nType; short field_C; short field_E; - short field_10; + uint16_t field_10; uint8_t field_12; uint8_t field_13; int x; @@ -274,11 +274,9 @@ int MoveBullet(short nBullet) int x2, y2, z2; - short var_3C = pBullet->field_10; - int nVal; - if (var_3C < 30000) + if (pBullet->field_10 < 30000) { short nEnemySprite = nBulletEnemy[nBullet]; if (nEnemySprite > -1) @@ -287,7 +285,7 @@ int MoveBullet(short nBullet) nBulletEnemy[nBullet] = -1; else { - nVal = AngleChase(nSprite, nEnemySprite, var_3C, 0, 16); + nVal = AngleChase(nSprite, nEnemySprite, pBullet->field_10, 0, 16); goto MOVEEND; } }