Rectify bug i made

This commit is contained in:
refractionpcsx2
2007-12-07 21:35:31 +00:00
parent fd31c89ed4
commit b3cda482b1

View File

@@ -69,7 +69,7 @@ static void psxRcntSet() {
if (c < psxNextCounter) {
psxNextCounter = c;
}
if((psxCounters[i].mode & 0x0020)) {
if((psxCounters[i].mode & 0x0010)) { //0x20 is overflow interrupts, should be 0x10 for target, silly me.
c = (u32)(psxCounters[i].target - psxRcntCycles(i)) * psxCounters[i].rate;
if (c < psxNextCounter) {
psxNextCounter = c;
@@ -82,7 +82,7 @@ static void psxRcntSet() {
if (c < psxNextCounter) {
psxNextCounter = c;
}
if((psxCounters[i].mode & 0x0020)) {
if((psxCounters[i].mode & 0x0010)) { //0x20 is overflow interrupts, should be 0x10 for target, silly me.
c = (u32)(psxCounters[i].target - psxRcntCycles(i)) * psxCounters[i].rate;
if (c < psxNextCounter) {
psxNextCounter = c;