fix vhack for ra1

This commit is contained in:
FunkyFr3sh 2018-03-23 23:10:49 +01:00
parent e65c03c607
commit aaf35ec5cf
3 changed files with 10 additions and 6 deletions

View file

@ -56,7 +56,7 @@ BOOL WINAPI fake_GetCursorPos(LPPOINT lpPoint)
ddraw->cursor.y = pt.y;
}
if (ddraw->vhack && ddraw->iscnc1 && ddraw->incutscene)
if (ddraw->vhack && (ddraw->iscnc1 || ddraw->isredalert) && ddraw->incutscene)
{
int diffx = 0, diffy = 0;

View file

@ -46,8 +46,12 @@ BOOL detect_cutscene()
}
return FALSE;
}
else if (ddraw->iscnc1)
{
return getPixel(CUTSCENE_WIDTH + 1, 0) == 0 || getPixel(CUTSCENE_WIDTH + 5, 1) == 0 ? TRUE : FALSE;
}
return getPixel(CUTSCENE_WIDTH + 1, 0) == 0 || getPixel(CUTSCENE_WIDTH + 5, 1) == 0 ? TRUE : FALSE;
return FALSE;
}
DWORD WINAPI render_soft_main(void)