mirror of https://github.com/PCSX2/pcsx2.git
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:
parent
633938b4dd
commit
4582b281c1
|
@ -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++;
|
||||
|
|
Loading…
Reference in New Issue