Skip to content

Commit

Permalink
- RR: stop the bowling pins' tumbling animation when they come to a r…
Browse files Browse the repository at this point in the history
…est.

Fixes an original RR bug.
  • Loading branch information
coelckers committed Jan 8, 2023
1 parent ff33dd7 commit 532f994
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions source/games/duke/src/namelist_r.h
Expand Up @@ -1031,6 +1031,7 @@ x(BOWLINGBALLSPRITE, 3437)
x(POWDERH, 3438)
x(BOWLINGPIN, 3440)
x(BOWLINGPIN1, 3441)
x(BOWLINGPIN2, 3442)
x(DEVISTATOR, 3445)
x(RPGGUN, 3452)
y(RRTILE3462, 3462)
Expand Down
7 changes: 6 additions & 1 deletion wadsrc/static/zscript/games/duke/actors/bowling.zs
Expand Up @@ -3,7 +3,7 @@ class RedneckBowlingPin : DukeActor
default
{
RedneckBowlingPin.Behavior 0;
spriteset "BOWLINGPIN", "BOWLINGPIN1";
spriteset "BOWLINGPIN", "BOWLINGPIN1", "BOWLINGPIN2";
}

meta int behavior;
Expand Down Expand Up @@ -65,13 +65,18 @@ class RedneckBowlingPin : DukeActor
}
if (type < 2 && self.vel.X == 0)
{
if (type == 0 && self.spritesetindex == 1) self.setSpritesetImage(2);
return;
}
}
else if (self.sector.lotag == 900 && type != 2)
{
self.Destroy();
}
else
{
if (type == 0 && self.spritesetindex == 1) self.setSpritesetImage(2);
}
}

override void Tick()
Expand Down

0 comments on commit 532f994

Please sign in to comment.