summaryrefslogtreecommitdiff
path: root/apps/plugins/sdl
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/sdl')
-rw-r--r--apps/plugins/sdl/progs/duke3d/Game/src/global.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/apps/plugins/sdl/progs/duke3d/Game/src/global.c b/apps/plugins/sdl/progs/duke3d/Game/src/global.c
index 861e1326e8..9c8d3a607a 100644
--- a/apps/plugins/sdl/progs/duke3d/Game/src/global.c
+++ b/apps/plugins/sdl/progs/duke3d/Game/src/global.c
@@ -453,7 +453,6 @@ int _dos_findnext(struct find_t *f)
453void _dos_getdate(struct dosdate_t *date) 453void _dos_getdate(struct dosdate_t *date)
454{ 454{
455 time_t curtime = time(NULL); 455 time_t curtime = time(NULL);
456 struct tm *tm;
457 456
458 if (date == NULL) { 457 if (date == NULL) {
459 return; 458 return;
@@ -461,11 +460,10 @@ void _dos_getdate(struct dosdate_t *date)
461 460
462 memset(date, 0, sizeof(struct dosdate_t)); 461 memset(date, 0, sizeof(struct dosdate_t));
463 462
464 rb->mktime(&tm); 463 date->day = 1;
465 date->day = tm->tm_mday; 464 date->month = 1;
466 date->month = tm->tm_mon + 1; 465 date->year = 1970;
467 date->year = tm->tm_year + 1900; 466 date->dayofweek = 4;
468 date->dayofweek = tm->tm_wday + 1;
469} 467}
470#endif 468#endif
471 469