aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2012-08-15 02:36:08 +0200
committerEinar Johan Trøan Sømåen2012-08-15 02:36:08 +0200
commiteacb0b169814345271d9d8e947d3d4fefe06ad7f (patch)
tree4ea5d1d3a04925331a1d8239e9c4ecfbfd455c6f
parent10ca0f136d120677d776981fc58aba548181c033 (diff)
downloadscummvm-rg350-eacb0b169814345271d9d8e947d3d4fefe06ad7f.tar.gz
scummvm-rg350-eacb0b169814345271d9d8e947d3d4fefe06ad7f.tar.bz2
scummvm-rg350-eacb0b169814345271d9d8e947d3d4fefe06ad7f.zip
WINTERMUTE: Make use of the wday-field in dates, instead of a wrong mday-value.
-rw-r--r--engines/wintermute/base/scriptables/script_ext_date.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/wintermute/base/scriptables/script_ext_date.cpp b/engines/wintermute/base/scriptables/script_ext_date.cpp
index b5acc7d389..7726015081 100644
--- a/engines/wintermute/base/scriptables/script_ext_date.cpp
+++ b/engines/wintermute/base/scriptables/script_ext_date.cpp
@@ -127,8 +127,7 @@ bool SXDate::scCallMethod(ScScript *script, ScStack *stack, ScStack *thisStack,
//////////////////////////////////////////////////////////////////////////
else if (strcmp(name, "GetWeekday") == 0) {
stack->correctParams(0);
- warning("GetWeekday returns a wrong value on purpose");
- stack->pushInt(_tm.tm_mday % 7);
+ stack->pushInt(_tm.tm_wday);
return STATUS_OK;
}