From 26c1c77758dee5baf4050a99e1d50b09e43d9af5 Mon Sep 17 00:00:00 2001 From: Cacodemon345 Date: Sat, 30 Dec 2023 20:50:17 +0600 Subject: [PATCH] Fix yet another dumb copy-paste mistake --- src/video/vid_mga.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/video/vid_mga.c b/src/video/vid_mga.c index 33a3385d58..0a9df92ad1 100644 --- a/src/video/vid_mga.c +++ b/src/video/vid_mga.c @@ -5024,10 +5024,10 @@ blit_texture_trap(mystique_t *mystique) } if (mystique->maccess_running & MACCESS_ZWIDTH) { - mystique->dwgreg.extended_dr[0] += z_back_32 + mystique->dwgreg.extended_dr[3]; + mystique->dwgreg.extended_dr[0] = z_back_32 + mystique->dwgreg.extended_dr[3]; mystique->dwgreg.dr[0] = (mystique->dwgreg.extended_dr[0] >> 16) & 0xFFFFFFFF; } else { - mystique->dwgreg.dr[0] += z_back + mystique->dwgreg.dr[3]; + mystique->dwgreg.dr[0] = z_back + mystique->dwgreg.dr[3]; mystique->dwgreg.extended_dr[0] = (mystique->dwgreg.extended_dr[0] & ~0xFFFFull) | ((uint64_t)mystique->dwgreg.dr[0] << 16ull); } mystique->dwgreg.dr[4] = r_back + mystique->dwgreg.dr[7];