diff options
author | Matthew Hoops | 2011-08-03 11:57:18 -0400 |
---|---|---|
committer | Matthew Hoops | 2011-08-03 11:57:18 -0400 |
commit | 2ea594de8390d9b7829ca6839e267b20e7dfce5e (patch) | |
tree | aeb1d4b49af5457bcafc1845442a42e3bf024bf9 /engines | |
parent | a160179f3716b4350c765d307af6eeba1859b1c1 (diff) | |
download | scummvm-rg350-2ea594de8390d9b7829ca6839e267b20e7dfce5e.tar.gz scummvm-rg350-2ea594de8390d9b7829ca6839e267b20e7dfce5e.tar.bz2 scummvm-rg350-2ea594de8390d9b7829ca6839e267b20e7dfce5e.zip |
SCUMM: Fix shadows in soccer
Spotted by fuzzie
Diffstat (limited to 'engines')
-rw-r--r-- | engines/scumm/he/logic_he.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/engines/scumm/he/logic_he.cpp b/engines/scumm/he/logic_he.cpp index c4f019c5b5..562b64aec8 100644 --- a/engines/scumm/he/logic_he.cpp +++ b/engines/scumm/he/logic_he.cpp @@ -1222,18 +1222,16 @@ int LogicHEsoccer::op_1011(int32 a1, int32 a2, int32 a3, int32 a4, int32 a5, int int v8 = (int)(_userDataD[526] - (_userDataD[521] - v7) * _userDataD[522] - 300.0); double v9 = _userDataD[523]; - v29 = atan2(v29, v31); - // x/y position? - putInArray(a2, i, 0, (int32)(v29 * v9 + 640.0)); + // x/y position of objects + putInArray(a2, i, 0, (int32)(atan2(v29, v31) * v9 + 640.0)); putInArray(a2, i, 1, v8); double v10 = atan2(_userDataD[524], (double)v31); int v12 = (int)(_userDataD[526] - (_userDataD[521] - (float)v10) * _userDataD[522] - 300.0); double v13 = _userDataD[523]; - v29 = atan2(v29, v31); - // x/y position? - putInArray(a2, i + 22, 0, (int32)(v29 * v13 + 640.0)); + // x/y position of shadows + putInArray(a2, i + 22, 0, (int32)(atan2(v29, v31) * v13 + 640.0)); putInArray(a2, i + 22, 1, v12); } |