SCI: Fix wrong game features heuristic for Hoyle 1/2 - bug #6606
Games with newer graphics functions can call kDrawPic with 4 or 8 parameters. Older games call it with 6 parameters. Fixes the about dialog in Hoyle 1
This commit is contained in:
parent
e7f023883e
commit
f2f8bf5685
1 changed files with 3 additions and 3 deletions
|
@ -344,9 +344,9 @@ bool GameFeatures::autoDetectGfxFunctionsType(int methodNum) {
|
|||
if (kFuncNum == 8) { // kDrawPic (SCI0 - SCI11)
|
||||
// If kDrawPic is called with 6 parameters from the overlay
|
||||
// selector, the game is using old graphics functions.
|
||||
// Otherwise, if it's called with 8 parameters, it's using new
|
||||
// graphics functions.
|
||||
_gfxFunctionsType = (argc == 8) ? SCI_VERSION_0_LATE : SCI_VERSION_0_EARLY;
|
||||
// Otherwise, if it's called with 8 parameters (e.g. SQ3) or 4 parameters
|
||||
// (e.g. Hoyle 1/2), it's using new graphics functions.
|
||||
_gfxFunctionsType = (argc == 6) ? SCI_VERSION_0_EARLY : SCI_VERSION_0_LATE;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue