mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-30 23:43:10 +00:00
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:
parent
d69404d5de
commit
4bdea384c3
@ -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;
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user