aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm
diff options
context:
space:
mode:
authorJohannes Schickel2012-06-17 17:17:06 -0700
committerJohannes Schickel2012-06-17 17:17:06 -0700
commit1b1b1d6615c4555e133a59c2c221bae65853c1f2 (patch)
treee4bdd0dcf39948fd595eac57ce214f3c55038639 /engines/scumm
parent269ea2f6be551f3159c1e508e28ebd2a609f5ab0 (diff)
parent249d48f77b395d82b8f2bb67360c5539212f5bc4 (diff)
downloadscummvm-rg350-1b1b1d6615c4555e133a59c2c221bae65853c1f2.tar.gz
scummvm-rg350-1b1b1d6615c4555e133a59c2c221bae65853c1f2.tar.bz2
scummvm-rg350-1b1b1d6615c4555e133a59c2c221bae65853c1f2.zip
Merge pull request #244 from clone2727/football2002-wday
COMMON: Add tm_wday to our TimeDate struct
Diffstat (limited to 'engines/scumm')
-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;
}