aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/he/logic
diff options
context:
space:
mode:
authorMatthew Hoops2012-06-09 20:22:14 -0400
committerMatthew Hoops2012-06-09 20:22:14 -0400
commit6d4f2753cfa0da81a7ca17054d193fc8c10cb401 (patch)
tree41afa18807b8e9639afdb81bbee264f6c60c3501 /engines/scumm/he/logic
parentb2f5721e58e94b918c5b7032e315396f4fb6c51d (diff)
downloadscummvm-rg350-6d4f2753cfa0da81a7ca17054d193fc8c10cb401.tar.gz
scummvm-rg350-6d4f2753cfa0da81a7ca17054d193fc8c10cb401.tar.bz2
scummvm-rg350-6d4f2753cfa0da81a7ca17054d193fc8c10cb401.zip
SCUMM: Implement football2002's getDayOfWeek() u32 function
Diffstat (limited to 'engines/scumm/he/logic')
-rw-r--r--engines/scumm/he/logic/football.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/engines/scumm/he/logic/football.cpp b/engines/scumm/he/logic/football.cpp
index f67e07c475..b405d634a4 100644
--- a/engines/scumm/he/logic/football.cpp
+++ b/engines/scumm/he/logic/football.cpp
@@ -348,7 +348,12 @@ int LogicHEfootball2002::translateScreenToWorld(int32 *args) {
}
int LogicHEfootball2002::getDayOfWeek() {
- // TODO: Get day of week, store in var 108
+ // Get day of week, store in var 108
+
+ TimeDate time;
+ _vm->_system->getTimeAndDate(time);
+ writeScummVar(108, time.tm_wday);
+
return 1;
}