TITANIC: make sure of setOrientations more clear

Made camera automover setOrientations not virtual and reduced
arguments also changed name since to differentiate it from
behavior of derived classes.
This commit is contained in:
David Fioramonti 2017-09-07 05:16:26 -07:00
parent d69404d5de
commit 4bdea384c3
3 changed files with 3 additions and 4 deletions

View File

@ -41,8 +41,7 @@ CCameraAutoMover::CCameraAutoMover() : _srcPos(0.0, 1000000.0, 0.0) {
_transitionPercentInc = 0.0;
}
// TODO: same as proc2 also orientations are not used
void CCameraAutoMover::setOrientations(const FMatrix &srcOrient, const FMatrix &destOrient) {
void CCameraAutoMover::clear() {
_srcPos.clear();
_destPos.clear();
_transitionPercent = 1.0;

View File

@ -62,7 +62,7 @@ public:
/**
* Clear src and dest orientation and set some default values for other fields
*/
virtual void setOrientations(const FMatrix &srcOrient, const FMatrix &destOrient);
void clear();
/**
* Setup a transition to from one position to another

View File

@ -28,7 +28,7 @@
namespace Titanic {
void CUnmarkedAutoMover::setOrientations(const FMatrix &srcOrient, const FMatrix &destOrient) {
CCameraAutoMover::setOrientations(srcOrient, destOrient);
CCameraAutoMover::clear();
_orientationChanger.load(srcOrient, destOrient);
_transitionPercentInc = 0.1;
_transitionPercent = 0.0;