mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 08:52:00 +00:00
Fix return type of A_CheckHitSprite()
Since the returned value is a distance, it should be int32_t. git-svn-id: https://svn.eduke32.com/eduke32@8730 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
4bdffa4f0f
commit
2e17467a8f
3 changed files with 4 additions and 4 deletions
|
@ -2066,7 +2066,7 @@ ACTOR_STATIC void G_MoveStandables(void)
|
|||
updatesectorneighbor(pSprite->x, pSprite->y, &curSectNum, 1024, 2048);
|
||||
changespritesect(spriteNum, curSectNum);
|
||||
|
||||
int hitDist = A_CheckHitSprite(spriteNum, &hitSprite);
|
||||
int32_t hitDist = A_CheckHitSprite(spriteNum, &hitSprite);
|
||||
|
||||
actor[spriteNum].lastv.x = hitDist;
|
||||
pSprite->ang = oldAng;
|
||||
|
@ -2133,7 +2133,7 @@ ACTOR_STATIC void G_MoveStandables(void)
|
|||
|
||||
setsprite(spriteNum, &pSprite->pos);
|
||||
|
||||
int hitDist = A_CheckHitSprite(spriteNum, NULL);
|
||||
int32_t const hitDist = A_CheckHitSprite(spriteNum, NULL);
|
||||
|
||||
pSprite->pos.vec2 = { T4(spriteNum), T5(spriteNum) };
|
||||
pSprite->z += (3<<8);
|
||||
|
|
|
@ -3064,7 +3064,7 @@ CHECKINV1:
|
|||
}
|
||||
}
|
||||
|
||||
int A_CheckHitSprite(int spriteNum, int16_t *hitSprite)
|
||||
int32_t A_CheckHitSprite(int spriteNum, int16_t *hitSprite)
|
||||
{
|
||||
hitdata_t hitData;
|
||||
int32_t zOffset = 0;
|
||||
|
|
|
@ -110,7 +110,7 @@ typedef struct {
|
|||
void G_ActivateBySector(int sect,int spriteNum);
|
||||
int S_FindMusicSFX(int sectNum, int *sndptr);
|
||||
int A_CallSound(int sectNum,int spriteNum);
|
||||
int A_CheckHitSprite(int spriteNum,int16_t *hitSprite);
|
||||
int32_t A_CheckHitSprite(int spriteNum,int16_t *hitSprite);
|
||||
void A_DamageObject_Duke3D(int spriteNum, int dmgSrc);
|
||||
void A_DamageObject_Generic(int spriteNum, int dmgSrc);
|
||||
void A_DamageObject(int spriteNum,int dmgSrc);
|
||||
|
|
Loading…
Reference in a new issue