diff options
author | Paul Gilbert | 2011-04-09 14:17:54 +1000 |
---|---|---|
committer | Paul Gilbert | 2011-04-09 14:17:54 +1000 |
commit | d10453d162d87237636502ed918d19c9d8211969 (patch) | |
tree | 1ce83a83c6a8c33b41c43e465ad9c06de248df1c /engines | |
parent | 4f9bfa049c9aee9287601fb01e5461d90ba29c0f (diff) | |
download | scummvm-rg350-d10453d162d87237636502ed918d19c9d8211969.tar.gz scummvm-rg350-d10453d162d87237636502ed918d19c9d8211969.tar.bz2 scummvm-rg350-d10453d162d87237636502ed918d19c9d8211969.zip |
TSAGE: Some bugfixes to calculating object distances in Scene #6100
Diffstat (limited to 'engines')
-rw-r--r-- | engines/tsage/ringworld_scenes1.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/tsage/ringworld_scenes1.cpp b/engines/tsage/ringworld_scenes1.cpp index e398dc3c98..88ebbfae71 100644 --- a/engines/tsage/ringworld_scenes1.cpp +++ b/engines/tsage/ringworld_scenes1.cpp @@ -2926,8 +2926,8 @@ void Scene6100::Action5::dispatch() { for (int idx = 0; idx < 4; ++idx) { FloatSet tempSet = scene->_objList[idx]->_floats; - tempSet.add(scene->_object5._floats._float1, scene->_object5._floats._float2, - scene->_object5._floats._float3); + tempSet.add(-scene->_object5._floats._float1, -scene->_object5._floats._float2, + -scene->_object5._floats._float3); tempSet.proc1(scene->_angle * MULTIPLY_FACTOR); @@ -2938,7 +2938,7 @@ void Scene6100::Action5::dispatch() { } scene->_objList[idx]->_position.x = static_cast<int>( - (tempSet._float2 + 330.0) / 330.0 * tempSet._float1 - 160.0); + 160.0 - ((tempSet._float2 + 330.0) / 330.0 * tempSet._float1)); if (tempSet._float2 < 0) { scene->_objList[idx]->_position.y = 300; |