Skip to content

Commit

Permalink
Fix cinematics off-by-one-pixel draw error
Browse files Browse the repository at this point in the history
  • Loading branch information
erysdren committed Apr 12, 2024
1 parent edfa029 commit f959c4c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions rott/cin_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,9 @@ void R_DrawFilmColumn (byte * buf)
int frac, fracstep;
byte *dest;

count = cin_yh - cin_yl;
if (count < 0) return;
count = (cin_yh + 1) - cin_yl;
if (!count)
return;

dest = buf + ylookup[cin_yl];

Expand Down

0 comments on commit f959c4c

Please sign in to comment.