Skip to content

Commit

Permalink
- Duke: fixed bad range check in tripbomb drawer.
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed May 30, 2023
1 parent 517b77b commit f8de8eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/games/duke/src/hudweapon_d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ void displayweapon_d(int snum, double interpfrac)
hud_drawpal(142 + offsets.X, 234 + offsets.Y, "TRIPBOMB", shade, o, pal, angle);

int i = (*kb >> 2);
if (i < 4)
if (i < 3)
{
hud_drawpal(130 + offsets.X, 249 + offsets.Y, frames[i], shade, o, pal, angle);
hud_drawpal(152 + offsets.X, 249 + offsets.Y, frames[i], shade, o | 4, pal, angle);
Expand Down

0 comments on commit f8de8eb

Please sign in to comment.