mirror of
https://github.com/ZDoom/Raze.git
synced 2025-03-13 20:42:11 +00:00
- handle all constant add_int_z calls in Exhumed
This commit is contained in:
parent
3a77742b72
commit
c66c750547
6 changed files with 8 additions and 8 deletions
|
@ -355,7 +355,7 @@ int MoveBullet(int nBullet)
|
|||
pActor->spr.xrepeat = 40;
|
||||
pActor->spr.yrepeat = 40;
|
||||
pActor->spr.shade = 0;
|
||||
pActor->add_int_z(512);
|
||||
pActor->spr.pos.Z += 2;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
|
@ -102,7 +102,7 @@ void AIFishLimb::Tick(RunListEvent* ev)
|
|||
|
||||
if (FloorZ <= pActor->int_pos().Z)
|
||||
{
|
||||
pActor->add_int_z(256);
|
||||
pActor->spr.pos.Z++;
|
||||
|
||||
if ((pActor->int_pos().Z - FloorZ) > 25600)
|
||||
{
|
||||
|
|
|
@ -1768,13 +1768,13 @@ void AIEnergyBlock::RadialDamage(RunListEvent* ev)
|
|||
int nFloorZ = pSector->int_floorz();
|
||||
|
||||
pSector->set_int_floorz(pActor->int_pos().Z);
|
||||
pActor->add_int_z(-256);
|
||||
pActor->spr.pos.Z--;
|
||||
|
||||
ev->nDamage = runlist_CheckRadialDamage(pActor);
|
||||
|
||||
// restore previous values
|
||||
pSector->set_int_floorz(nFloorZ);
|
||||
pActor->add_int_z(256);
|
||||
pActor->spr.pos.Z++;
|
||||
|
||||
if (ev->nDamage <= 0) {
|
||||
return;
|
||||
|
|
|
@ -2493,7 +2493,7 @@ sectdone:
|
|||
PlayerList[nPlayer].nSeqSize = SeqSize[var_AC] - 1;
|
||||
|
||||
if (pPlayerActor->int_pos().Z < pPlayerActor->sector()->int_floorz()) {
|
||||
pPlayerActor->add_int_z(256);
|
||||
pPlayerActor->spr.pos.Z++;
|
||||
}
|
||||
|
||||
if (!RandomSize(5))
|
||||
|
|
|
@ -855,7 +855,7 @@ void AIQueenHead::Tick(RunListEvent* ev)
|
|||
}
|
||||
else
|
||||
{
|
||||
pActor->add_int_z(-2048);
|
||||
pActor->spr.pos.Z -= 8;
|
||||
goto __MOVEQS;
|
||||
}
|
||||
break;
|
||||
|
|
|
@ -109,8 +109,8 @@ static void analyzesprites(tspriteArray& tsprites, int x, int y, int z, double c
|
|||
if ((pTSprite->picnum == kTorch1 || pTSprite->picnum == kTorch2) && (pTSprite->cstat & CSTAT_SPRITE_YCENTER) == 0)
|
||||
{
|
||||
pTSprite->cstat |= CSTAT_SPRITE_YCENTER;
|
||||
int nTileY = (tileHeight(pTSprite->picnum) * pTSprite->yrepeat) * 2;
|
||||
pTSprite->add_int_z(-nTileY);
|
||||
double nTileY = (tileHeight(pTSprite->picnum) * pTSprite->yrepeat) * 2 * zinttoworld;
|
||||
pTSprite->pos.Z -= nTileY;
|
||||
}
|
||||
|
||||
if (pTSprite->pal == 4 && pTSprite->shade >= numshades) pTSprite->shade = numshades - 1;
|
||||
|
|
Loading…
Reference in a new issue