mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-11 18:50:46 +00:00
Fix bullets
This commit is contained in:
parent
83a4485140
commit
d4bdf01958
1 changed files with 3 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue