mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-05 01:38:36 +00:00
Possible fix for #1210373 FT: "wrong INSANE parameters for EN_VULTF2"
svn-id: r18287
This commit is contained in:
parent
764ed13352
commit
b902e47f39
@ -674,14 +674,21 @@ void Insane::readState(void) { // PATCH
|
|||||||
_enemy[EN_VULTF2].isEmpty = readArray(339);
|
_enemy[EN_VULTF2].isEmpty = readArray(339);
|
||||||
_enemy[EN_CAVEFISH].isEmpty = readArray(56);
|
_enemy[EN_CAVEFISH].isEmpty = readArray(56);
|
||||||
|
|
||||||
|
// FIXME
|
||||||
// Some sanity checks. There were submitted savefiles where these values were wrong
|
// Some sanity checks. There were submitted savefiles where these values were wrong
|
||||||
if (_enemy[EN_VULTM2].isEmpty != readArray(7))
|
// Still it is unknown what leads to this state. Most probably it is memory
|
||||||
error("Wrong INSANE parameters for EN_VULTM2 (%d %d). Please, report this",
|
// overwrite
|
||||||
|
if (_enemy[EN_VULTM2].isEmpty != readArray(7)) {
|
||||||
|
warning("Wrong INSANE parameters for EN_VULTM2 (%d %d)",
|
||||||
_enemy[EN_VULTM2].isEmpty, readArray(7));
|
_enemy[EN_VULTM2].isEmpty, readArray(7));
|
||||||
|
_enemy[EN_VULTM2].isEmpty = readArray(7);
|
||||||
|
}
|
||||||
|
|
||||||
if (_enemy[EN_VULTF2].isEmpty != (_actor[0].inventory[INV_CHAINSAW] != 0))
|
if (_enemy[EN_VULTF2].isEmpty != (_actor[0].inventory[INV_CHAINSAW] != 0)) {
|
||||||
error("Wrong INSANE parameters for EN_VULTF2 (%d %d). Please, report this",
|
warning("Wrong INSANE parameters for EN_VULTF2 (%d %d)",
|
||||||
_enemy[EN_VULTF2].isEmpty, _actor[0].inventory[INV_CHAINSAW]);
|
_enemy[EN_VULTF2].isEmpty, _actor[0].inventory[INV_CHAINSAW]);
|
||||||
|
_enemy[EN_VULTF2].isEmpty = (_actor[0].inventory[INV_CHAINSAW] != 0);
|
||||||
|
}
|
||||||
|
|
||||||
// FIXME
|
// FIXME
|
||||||
// This used to be here but.
|
// This used to be here but.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user