fix chembomb state sequence.

This commit is contained in:
Christoph Oelckers 2023-11-21 18:30:52 +01:00
parent 0666e3372c
commit 707eee9147
2 changed files with 8 additions and 4 deletions

View file

@ -147,9 +147,13 @@ FState s_RadiationCloud[] =
#define CHEMBOMB_RATE 8
FState s_ChemBomb[1] =
FState s_ChemBomb[5] =
{
{SPR_CHEMBOMB, 'A', CHEMBOMB_RATE, &AF(DoChemBomb), &s_ChemBomb[1]},
{SPR_CHEMBOMB, 'A', CHEMBOMB_RATE, &AF(DoChemBomb), &s_ChemBomb[0]},
{SPR_CHEMBOMB, 'B', CHEMBOMB_RATE, &AF(DoChemBomb), &s_ChemBomb[1]},
{SPR_CHEMBOMB, 'C', CHEMBOMB_RATE, &AF(DoChemBomb), &s_ChemBomb[2]},
{SPR_CHEMBOMB, 'D', CHEMBOMB_RATE, &AF(DoChemBomb), &s_ChemBomb[3]},
{SPR_CHEMBOMB, 'E', CHEMBOMB_RATE, &AF(DoChemBomb), &s_ChemBomb[0]},
};

View file

@ -5981,8 +5981,8 @@ int StateControl(DSWActor* actor)
// Set the correct pic
if ((actor->user.State->Tics & SF_WALL_STATE)) // never used anywhere...
{
ASSERT(actor->user.WallP);
actor->user.WallP->setwalltexture(picFromState(actor->user.State));
if (actor->user.WallP)
actor->user.WallP->setwalltexture(picFromState(actor->user.State));
}
else
{