diff -ur --exclude=CVS --exclude=Makefile ScummVM/gob/game.cpp ScummVM+hack/gob/game.cpp
old
|
new
|
|
1714 | 1714 | int32 variablesCount; |
1715 | 1715 | char *filePtr; |
1716 | 1716 | char *savedIP; |
1717 | | //struct date dateVal; |
1718 | 1717 | int16 i; |
1719 | 1718 | |
1720 | 1719 | oldNestLevel = inter_nestLevel; |
… |
… |
|
1835 | 1834 | inter_execPtr = (char *)game_totFileData; |
1836 | 1835 | inter_execPtr += READ_LE_UINT32((char *)game_totFileData + 0x64); |
1837 | 1836 | |
1838 | | /* |
1839 | | * removed by olki to get it to compile. |
1840 | | getdate(&dateVal); |
1841 | | |
1842 | | WRITE_LE_UINT32(inter_variables + 0x14), dateVal.da_year); |
1843 | | WRITE_LE_UINT32(inter_variables + 0x18), dateVal.da_mon); |
1844 | | WRITE_LE_UINT32(inter_variables + 0x1c), 0); |
1845 | | WRITE_LE_UINT32(inter_variables + 0x20), dateVal.da_day); |
1846 | | */ |
1847 | | |
1848 | 1837 | inter_renewTimeInVars(); |
1849 | 1838 | |
1850 | 1839 | WRITE_VAR(13, useMouse); |
diff -ur --exclude=CVS --exclude=Makefile ScummVM/gob/inter.cpp ScummVM+hack/gob/inter.cpp
old
|
new
|
|
745 | 745 | } |
746 | 746 | |
747 | 747 | void inter_renewTimeInVars(void) { |
748 | | uint32 time = g_system->getMillis(); |
| 748 | struct tm *t; |
| 749 | time_t now = time(NULL); |
749 | 750 | |
750 | | time /= 1000; // convert to seconds |
| 751 | t = localtime(&now); |
751 | 752 | |
752 | | // hours |
753 | | WRITE_VAR(9, time / 3600); |
754 | | time %= 3600; |
755 | | |
756 | | // minutes |
757 | | WRITE_VAR(10, time / 60); |
758 | | time %= 60; |
759 | | |
760 | | // seconds |
761 | | WRITE_VAR(11, time); |
| 753 | WRITE_VAR(5, 1900 + t->tm_year); |
| 754 | WRITE_VAR(6, t->tm_mon); |
| 755 | WRITE_VAR(7, 0); |
| 756 | WRITE_VAR(8, t->tm_mday); |
| 757 | WRITE_VAR(9, t->tm_hour); |
| 758 | WRITE_VAR(10, t->tm_min); |
| 759 | WRITE_VAR(11, t->tm_sec); |
762 | 760 | } |
763 | 761 | |
764 | 762 | void inter_playComposition(void) { |