I had a quick question about time_info.hour:
Basically what Im trying to do, is stop the compression of time in the normal smaug code. Ive figured out where the time_info data is processed in db.c
the code is as follows:
Basically I want to make time flow with the current_time. I know the problems is either with the 1hour or time_info.hour variables.
Any suggestions would be welcome.
Thanks,
-Kelsid
Basically what Im trying to do, is stop the compression of time in the normal smaug code. Ive figured out where the time_info data is processed in db.c
the code is as follows:
/*
* Set time and weather.
*/
{
long lhour, lday, lmonth;
log_string("Setting time and weather");
lhour = (current_time - 650336715)
/ (PULSE_TICK / PULSE_PER_SECOND);
time_info.hour = lhour % 24;
lday = lhour / 24;
time_info.day = lday % 35;
lmonth = lday / 35;
time_info.month = lmonth % 12;
time_info.year = lmonth / 12;
Basically I want to make time flow with the current_time. I know the problems is either with the 1hour or time_info.hour variables.
Any suggestions would be welcome.
Thanks,
-Kelsid