mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-30 05:34:00 +00:00
WINTERMUTE: Make use of the wday-field in dates, instead of a wrong mday-value.
This commit is contained in:
parent
10ca0f136d
commit
eacb0b1698
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user