RTC: correct date change at midnight bordering the 28th and 29th of January on a leap year.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2881 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
sudonim1 2010-04-21 01:08:15 +00:00
parent 633938b4dd
commit 4582b281c1
1 changed files with 1 additions and 1 deletions

View File

@ -897,7 +897,7 @@ void cdvdVsync() {
cdvd.RTC.hour = 0;
cdvd.RTC.day++;
if (cdvd.RTC.day <= monthmap[cdvd.RTC.month-1]) return;
if (cdvd.RTC.day <= (cdvd.RTC.month == 2 && cdvd.RTC.year % 4 == 0 ? 29 : monthmap[cdvd.RTC.month-1])) return;
cdvd.RTC.day = 1;
cdvd.RTC.month++;