void AdvanceClock(int hours,int days=0,int months=0,int years=0);
void AdvanceClock(int hours,int days=0,int months=0,int years=0)
{
hours +=GetTimeHour();
days +=GetCalendarDay();
months +=GetCalendarMonth();
years +=GetCalendarYear();
days +=hours/24;
hours = hours%24;
SetTime(hours,GetTimeMinute(),GetTimeSecond(),GetTimeMillisecond());
SetCalendar(years,months,days);
}
Do you need help adding the function to your transistions?
Or can you take it from here?
Modifié par Lightfoot8, 04 juillet 2011 - 02:15 .