diff options
author | Filippos Karapetis | 2008-04-29 16:24:54 +0000 |
---|---|---|
committer | Filippos Karapetis | 2008-04-29 16:24:54 +0000 |
commit | 0de56ea1f9e28a21d8252f1646fc8c4aaa25cb64 (patch) | |
tree | a5ec4e0989bcd4981ac437f6b7a04852353f8589 /engines/agi/op_cmd.cpp | |
parent | 14523bd3bbf82cce9e004e61c8971810d25583e1 (diff) | |
download | scummvm-rg350-0de56ea1f9e28a21d8252f1646fc8c4aaa25cb64.tar.gz scummvm-rg350-0de56ea1f9e28a21d8252f1646fc8c4aaa25cb64.tar.bz2 scummvm-rg350-0de56ea1f9e28a21d8252f1646fc8c4aaa25cb64.zip |
Fix for original game bug #1942476 - "AGI: Fan(Get Outta SQ) - Score is lost on restart"
svn-id: r31776
Diffstat (limited to 'engines/agi/op_cmd.cpp')
-rw-r--r-- | engines/agi/op_cmd.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/engines/agi/op_cmd.cpp b/engines/agi/op_cmd.cpp index 7897b57c30..7ecedfbc8c 100644 --- a/engines/agi/op_cmd.cpp +++ b/engines/agi/op_cmd.cpp @@ -74,6 +74,16 @@ cmd(decrement) { cmd(assignn) { _v[p0] = p1; + + // WORKAROUND for a bug in fan game "Get outta SQ" + // Total number of points is stored in variable 7, which + // is then incorrectly assigned to 0. Thus, when the game + // is restarted, "Points 0 of 0" is shown. We set the + // variable to the correct value here + // Fixes bug #1942476 - "AGI: Fan(Get Outta SQ) - Score + // is lost on restart" + if (g_agi->getGameID() == GID_GETOUTTASQ && p0 == 7) + _v[p0] = 8; } cmd(addn) { |