Fix red dialog buttons

This commit is contained in:
Alexander Batalov 2022-10-07 23:31:17 +03:00
parent 74a9a9e530
commit ddae4df4ab
1 changed files with 6 additions and 6 deletions

View File

@ -4623,15 +4623,15 @@ static void gameDialogHighlightsExit()
static void gameDialogRedButtonsInit() static void gameDialogRedButtonsInit()
{ {
// di_rdbt2.frm - dialog red button down // di_rdbt2.frm - dialog red button up
int pressedFid = buildFid(OBJ_TYPE_INTERFACE, 96, 0, 0, 0); int normalFid = buildFid(OBJ_TYPE_INTERFACE, 96, 0, 0, 0);
if (!_redButtonPressedFrmImage.lock(pressedFid)) { if (!_redButtonNormalFrmImage.lock(normalFid)) {
gameDialogRedButtonsExit(); gameDialogRedButtonsExit();
} }
// di_rdbt1.frm - dialog red button up // di_rdbt1.frm - dialog red button down
int normalFid = buildFid(OBJ_TYPE_INTERFACE, 95, 0, 0, 0); int pressedFid = buildFid(OBJ_TYPE_INTERFACE, 95, 0, 0, 0);
if (!_redButtonNormalFrmImage.lock(normalFid)) { if (!_redButtonPressedFrmImage.lock(pressedFid)) {
gameDialogRedButtonsExit(); gameDialogRedButtonsExit();
} }
} }