Fix yet another dumb copy-paste mistake

This commit is contained in:
Cacodemon345
2023-12-30 20:50:17 +06:00
committed by GitHub
parent 069f9adf2c
commit 26c1c77758

View File

@@ -5024,10 +5024,10 @@ skip_pixel:
}
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];