aboutsummaryrefslogtreecommitdiff
path: root/libpcsxcore/gte.c
diff options
context:
space:
mode:
authornotaz2011-06-30 02:03:25 +0300
committernotaz2011-07-08 00:15:20 +0300
commit631e6f284702250d609d34d56ba2278bac2fa637 (patch)
tree198ce52e306f34b0933e79cf7933eff7529e0d8a /libpcsxcore/gte.c
parent1f77c86322bf6567909da192fdbf6c28c0596a13 (diff)
downloadpcsx_rearmed-631e6f284702250d609d34d56ba2278bac2fa637.tar.gz
pcsx_rearmed-631e6f284702250d609d34d56ba2278bac2fa637.tar.bz2
pcsx_rearmed-631e6f284702250d609d34d56ba2278bac2fa637.zip
gte: fix MAC0 shift (pcsxr issue #8874, shalma)
fixes missing elements in Soul Reaver and Spyro.
Diffstat (limited to 'libpcsxcore/gte.c')
-rw-r--r--libpcsxcore/gte.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libpcsxcore/gte.c b/libpcsxcore/gte.c
index ec173b5..7efe7cf 100644
--- a/libpcsxcore/gte.c
+++ b/libpcsxcore/gte.c
@@ -377,8 +377,8 @@ void gteRTPS() {
gteSX2 = limG1(F((s64)gteOFX + ((s64)gteIR1 * quotient)) >> 16);
gteSY2 = limG2(F((s64)gteOFY + ((s64)gteIR2 * quotient)) >> 16);
- gteMAC0 = F((s64)(gteDQB + ((s64)gteDQA * quotient)) >> 12);
- gteIR0 = limH(gteMAC0);
+ gteMAC0 = F((s64)gteDQB + ((s64)gteDQA * quotient));
+ gteIR0 = limH(gteMAC0 >> 12);
}
void gteRTPT() {
@@ -407,8 +407,8 @@ void gteRTPT() {
fSX(v) = limG1(F((s64)gteOFX + ((s64)gteIR1 * quotient)) >> 16);
fSY(v) = limG2(F((s64)gteOFY + ((s64)gteIR2 * quotient)) >> 16);
}
- gteMAC0 = F((s64)(gteDQB + ((s64)gteDQA * quotient)) >> 12);
- gteIR0 = limH(gteMAC0);
+ gteMAC0 = F((s64)gteDQB + ((s64)gteDQA * quotient));
+ gteIR0 = limH(gteMAC0 >> 12);
}
void gteMVMVA() {