- use classtypes in fallspecial.

This commit is contained in:
Christoph Oelckers 2022-12-30 14:07:39 +01:00
parent 35a088ba04
commit 91d864ac8f
2 changed files with 6 additions and 4 deletions

View file

@ -1038,10 +1038,10 @@ static int fallspecial(DDukeActor *actor, int playernum)
{
if (actor->sector()->lotag == ST_801_ROCKY)
{
if (actor->spr.picnum == RTILE_ROCK)
if (actor->GetClass() == RedneckRockClass)
{
spawn(actor, RTILE_ROCK2);
spawn(actor, RTILE_ROCK2);
spawn(actor, RedneckRock2Class);
spawn(actor, RedneckRock2Class);
addspritetodelete();
}
return 0;
@ -1058,7 +1058,7 @@ static int fallspecial(DDukeActor *actor, int playernum)
}
else if (actor->sector()->lotag == ST_803_KILLROCKS)
{
if (actor->spr.picnum == RTILE_ROCK2)
if (actor->GetClass() == RedneckRock2Class)
addspritetodelete();
return 0;
}

View file

@ -114,3 +114,5 @@ xx(RedneckTitAmmo)
xx(DukeRadiusExplosion)
xx(DukePlayerBase)
xx(DukePlayerPawn)
xx(RedneckRock)
xx(RedneckRock2)