diff options
author | Paul Gilbert | 2017-03-05 09:59:43 -0500 |
---|---|---|
committer | Paul Gilbert | 2017-03-05 09:59:43 -0500 |
commit | f040c1bc91c4365c02aae61022e60e5c743ce013 (patch) | |
tree | ce69247c3688df50d176d45c040386c09e29c238 /engines/titanic/star_control/star_control_sub4.cpp | |
parent | 3a0bc46eb1dbcbc521c900c0168bd73dff259e52 (diff) | |
download | scummvm-rg350-f040c1bc91c4365c02aae61022e60e5c743ce013.tar.gz scummvm-rg350-f040c1bc91c4365c02aae61022e60e5c743ce013.tar.bz2 scummvm-rg350-f040c1bc91c4365c02aae61022e60e5c743ce013.zip |
TITANIC: Implementing starfield methods
Diffstat (limited to 'engines/titanic/star_control/star_control_sub4.cpp')
-rw-r--r-- | engines/titanic/star_control/star_control_sub4.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/engines/titanic/star_control/star_control_sub4.cpp b/engines/titanic/star_control/star_control_sub4.cpp index f765acbbc1..6ce0795c25 100644 --- a/engines/titanic/star_control/star_control_sub4.cpp +++ b/engines/titanic/star_control/star_control_sub4.cpp @@ -29,17 +29,17 @@ CStarControlSub4::CStarControlSub4() { } void CStarControlSub4::initialize() { - _min._v1 = _min._v2 = _min._v3 = 9.9999994e27; - _max._v1 = _max._v2 = _max._v3 = -9.9999994e27; + _min._x = _min._y = _min._z = 9.9999994e27; + _max._x = _max._y = _max._z = -9.9999994e27; } -void CStarControlSub4::checkEntry(const CBaseStarVal &val) { - _min._v1 = MIN(_min._v1, val._v1); - _min._v2 = MIN(_min._v2, val._v2); - _min._v3 = MIN(_min._v3, val._v3); - _max._v1 = MAX(_max._v1, val._v1); - _max._v2 = MAX(_max._v2, val._v2); - _max._v3 = MAX(_max._v3, val._v3); +void CStarControlSub4::checkEntry(const FVector &v) { + _min._x = MIN(_min._x, v._x); + _min._y = MIN(_min._y, v._y); + _min._z = MIN(_min._z, v._z); + _max._x = MAX(_max._x, v._x); + _max._y = MAX(_max._y, v._y); + _max._z = MAX(_max._z, v._z); } } // End of namespace Titanic |