- added a missing code fragment for WT's lavapool.

This made them float in the air instead of being on the ground.
This commit is contained in:
Christoph Oelckers 2020-09-23 17:26:44 +02:00
parent f106f35598
commit 71213bf8bd
2 changed files with 10 additions and 6 deletions

View file

@ -1279,10 +1279,6 @@ loc_1AB8E:
uint16_t buttons = sPlayerInput[nPlayer].buttons;
auto actions = sPlayerInput[nPlayer].actions;
if (actions & SB_OPEN)
{
int a = 0;
}
// loc_1AEF5:
if (PlayerList[nPlayer].nHealth > 0)

View file

@ -295,10 +295,18 @@ int spawn_d(int j, int pn)
sp->shade = 127;
}
sp->cstat |= 32;
if (sp->picnum == LAVAPOOL) // Twentieth Anniversary World Tour
{
int fz = getflorzofslope(sp->sectnum, sp->x, sp->y);
if (fz != sp->z)
sp->z = fz;
sp->z -= 200;
}
case FECES:
if( j >= 0)
sp->xrepeat = sp->yrepeat = 1;
changespritestat(i,5);
changespritestat(i, STAT_MISC);
break;
case BLOODSPLAT1:
@ -312,7 +320,7 @@ int spawn_d(int j, int pn)
if(j >= 0 && sprite[j].pal == 6)
sp->pal = 6;
insertspriteq(i);
changespritestat(i,5);
changespritestat(i, STAT_MISC);
break;
case TRIPBOMB: