fix vhack for ra1
This commit is contained in:
parent
e65c03c607
commit
aaf35ec5cf
3 changed files with 10 additions and 6 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue