From b58bc02940557af3dce28a34569895e787e4fddd Mon Sep 17 00:00:00 2001 From: Alug Date: Mon, 16 Nov 2026 00:04:24 +0100 Subject: [PATCH] scale software vhs offset by udup missed that when i added this oopsie --- src/v_video.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/v_video.c b/src/v_video.c index f88534f6e..6e1cdd0ff 100644 --- a/src/v_video.c +++ b/src/v_video.c @@ -1900,7 +1900,7 @@ void V_DrawVhsEffect(boolean rewind) pos = 0; - for (y = 0; y < vid.height; y+=2) + for (y = 0; y < vid.height; y += 2) { thismapstart = normalmapstart; offs = 0; @@ -1917,7 +1917,7 @@ void V_DrawVhsEffect(boolean rewind) offs -= downdistort * 2.0f * min(y-dby, dby+barsize-y) / barsize; } - offs += M_RandomKey(vid.dup<<1); + offs += M_RandomKey(vid.udup<<1); // lazy way to avoid crashes if ((y == 0 && offs < 0) || (y >= vid.height-2 && offs > 0))