From b087acd793e8780fe13d72c202330098652f10a3 Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Tue, 9 Aug 2011 16:25:57 -0400 Subject: [PATCH] SCUMM: Fix bug in soccer u32 op_1014_sub3 --- engines/scumm/he/logic_he.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/engines/scumm/he/logic_he.cpp b/engines/scumm/he/logic_he.cpp index d22ee458240..efbe2d273a7 100644 --- a/engines/scumm/he/logic_he.cpp +++ b/engines/scumm/he/logic_he.cpp @@ -2168,9 +2168,9 @@ int LogicHEsoccer::op_1014_sub3(float *a1, int a2, int a3, int a4, int a5, int a a12[0] = a9; a12[1] = a10; a12[2] = a11; - a12[3] = (int)(a1[5] * (double)a11 / 100.0); - a12[4] = (int)(a1[6] * (double)a11 / 100.0 * a8); // Note: a8 should always be 1 - a12[5] = (int)(a1[7] * (double)a11 / 100.0); + a12[3] = (int)(a1[5] * (double)a10 / 100.0); + a12[4] = (int)(a1[6] * (double)a10 / 100.0 * a8); // Note: a8 should always be 1 + a12[5] = (int)(a1[7] * (double)a10 / 100.0); a12[6] = (int)a1[2]; a12[7] = (int)a1[3]; a12[8] = (int)a1[4];