mirror of
https://github.com/ZDoom/Raze.git
synced 2025-03-22 17:01:08 +00:00
- use classtypes in fallspecial.
This commit is contained in:
parent
35a088ba04
commit
91d864ac8f
2 changed files with 6 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -114,3 +114,5 @@ xx(RedneckTitAmmo)
|
|||
xx(DukeRadiusExplosion)
|
||||
xx(DukePlayerBase)
|
||||
xx(DukePlayerPawn)
|
||||
xx(RedneckRock)
|
||||
xx(RedneckRock2)
|
||||
|
|
Loading…
Reference in a new issue