SAGA: Fix placard color in ITE ECS

This commit is contained in:
Vladimir Serbinenko 2022-12-17 20:11:58 +01:00
parent 73f04a31ab
commit 8b2019707d

View File

@ -1086,7 +1086,7 @@ void Script::sfPlacard(SCRIPTFUNC_PARAMS) {
event.type = kEvTOneshot;
event.code = kGraphicsEvent;
event.op = kEventFillRect;
event.param = kITEDOSColorDarkBlue8a;
event.param = _vm->isECS() ? 31 : kITEDOSColorDarkBlue8a;
event.param2 = 0;
event.param3 = _vm->_scene->getHeight();
event.param4 = 0;
@ -1123,6 +1123,11 @@ void Script::sfPlacard(SCRIPTFUNC_PARAMS) {
event.op = kEventBlackToPal;
event.time = 0;
event.duration = kNormalFadeDuration;
if (_vm->isECS()) {
pal[31].red = 0;
pal[31].green = 0x4b;
pal[31].blue = 0x97;
}
event.data = pal;
_vm->_events->chain(eventColumns, event);