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:
Filippos Karapetis 2014-08-08 02:51:57 +03:00
parent e7f023883e
commit f2f8bf5685

View file

@ -344,9 +344,9 @@ bool GameFeatures::autoDetectGfxFunctionsType(int methodNum) {
if (kFuncNum == 8) { // kDrawPic (SCI0 - SCI11) if (kFuncNum == 8) { // kDrawPic (SCI0 - SCI11)
// If kDrawPic is called with 6 parameters from the overlay // If kDrawPic is called with 6 parameters from the overlay
// selector, the game is using old graphics functions. // selector, the game is using old graphics functions.
// Otherwise, if it's called with 8 parameters, it's using new // Otherwise, if it's called with 8 parameters (e.g. SQ3) or 4 parameters
// graphics functions. // (e.g. Hoyle 1/2), it's using new graphics functions.
_gfxFunctionsType = (argc == 8) ? SCI_VERSION_0_LATE : SCI_VERSION_0_EARLY; _gfxFunctionsType = (argc == 6) ? SCI_VERSION_0_EARLY : SCI_VERSION_0_LATE;
return true; return true;
} }
} }