From 0de56ea1f9e28a21d8252f1646fc8c4aaa25cb64 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Tue, 29 Apr 2008 16:24:54 +0000 Subject: Fix for original game bug #1942476 - "AGI: Fan(Get Outta SQ) - Score is lost on restart" svn-id: r31776 --- engines/agi/op_cmd.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'engines/agi/op_cmd.cpp') 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) { -- cgit v1.2.3