DREAMWEB: fixed hardcoded offsets

This commit is contained in:
Vladimir 2011-06-09 10:25:36 +04:00 committed by Alyssa Milburn
parent a5bd71858b
commit bea919c9b4

View File

@ -303,9 +303,9 @@ void gettime(Context &context) {
context.ch = t.tm_hour;
context.cl = t.tm_min;
context.dh = t.tm_sec;
context.ds.byte(5) = context.dh;
context.ds.byte(6) = context.cl;
context.ds.byte(7) = context.ch;
context.data.byte(kSecondcount) = context.dh;
context.data.byte(kMinutecount) = context.cl;
context.data.byte(kHourcount) = context.ch;
}
void allocatemem(Context &context) {