mirror of
https://github.com/ZDoom/Raze.git
synced 2025-03-13 04:24:39 +00:00
- 3 minor changes.
This commit is contained in:
parent
89cfb87072
commit
9c698c6044
3 changed files with 5 additions and 5 deletions
|
@ -418,7 +418,7 @@ static tspritetype* viewAddEffect(tspriteArray& tsprites, int nTSprite, VIEW_EFF
|
|||
pNSprite->pos = { pTSprite->pos.X, pTSprite->pos.Y, pSector->ceilingz };
|
||||
|
||||
pNSprite->picnum = 624;
|
||||
pNSprite->shade = ((pTSprite->int_pos().Z - pSector->int_ceilingz()) >> 8) - 64;
|
||||
pNSprite->shade = int(pTSprite->pos.Z - pSector->ceilingz) - 64;
|
||||
pNSprite->pal = 2;
|
||||
pNSprite->xrepeat = pNSprite->yrepeat = 64;
|
||||
pNSprite->cstat |= CSTAT_SPRITE_ONE_SIDE | CSTAT_SPRITE_ALIGNMENT_FLOOR | CSTAT_SPRITE_YFLIP | CSTAT_SPRITE_TRANSLUCENT;
|
||||
|
|
|
@ -312,7 +312,7 @@ void GibFX(DBloodActor* actor, GIBFX* pGFX, DVector3* pPos, DVector3* pVel)
|
|||
default:
|
||||
if (dz2 < dz1 && dz2 < 0x400)
|
||||
{
|
||||
pFX->set_int_bvel_z(0);
|
||||
pFX->vel.Z = 0;
|
||||
}
|
||||
else if (dz2 > dz1 && dz1 < 0x400)
|
||||
{
|
||||
|
|
|
@ -3507,7 +3507,7 @@ void useSpriteDamager(DBloodActor* sourceactor, int objType, sectortype* targSec
|
|||
{
|
||||
sectortype* pSector = sourceactor->sector();
|
||||
|
||||
int top, bottom;
|
||||
double top, bottom;
|
||||
bool floor, ceil, wall, enter;
|
||||
|
||||
switch (objType)
|
||||
|
@ -3518,8 +3518,8 @@ void useSpriteDamager(DBloodActor* sourceactor, int objType, sectortype* targSec
|
|||
case OBJ_SECTOR:
|
||||
{
|
||||
GetActorExtents(sourceactor, &top, &bottom);
|
||||
floor = (bottom >= pSector->int_floorz());
|
||||
ceil = (top <= pSector->int_ceilingz());
|
||||
floor = (bottom >= pSector->floorz);
|
||||
ceil = (top <= pSector->ceilingz);
|
||||
wall = (sourceactor->spr.cstat & CSTAT_SPRITE_ALIGNMENT_WALL);
|
||||
enter = (!floor && !ceil && !wall);
|
||||
BloodSectIterator it(targSect);
|
||||
|
|
Loading…
Reference in a new issue