diff options
author | Einar Johan Trøan Sømåen | 2012-08-15 02:36:08 +0200 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2012-08-15 02:36:08 +0200 |
commit | eacb0b169814345271d9d8e947d3d4fefe06ad7f (patch) | |
tree | 4ea5d1d3a04925331a1d8239e9c4ecfbfd455c6f /engines | |
parent | 10ca0f136d120677d776981fc58aba548181c033 (diff) | |
download | scummvm-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.
Diffstat (limited to 'engines')
-rw-r--r-- | engines/wintermute/base/scriptables/script_ext_date.cpp | 3 |
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;
}
|