Skip to content

Commit

Permalink
- use classtypes in fallspecial.
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed Mar 27, 2023
1 parent b6a6853 commit 7e6852b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source/games/duke/src/actors_r.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
}
Expand Down
2 changes: 2 additions & 0 deletions source/games/duke/src/classnames.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,3 +114,5 @@ xx(RedneckTitAmmo)
xx(DukeRadiusExplosion)
xx(DukePlayerBase)
xx(DukePlayerPawn)
xx(RedneckRock)
xx(RedneckRock2)

0 comments on commit 7e6852b

Please sign in to comment.