aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/star_control/star_view.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2017-08-06 20:36:28 -0400
committerPaul Gilbert2017-08-06 20:36:28 -0400
commite830ddbc70c84060de2cb78e315990850e504b06 (patch)
treeb94441273f040da585ab431fc25d5e5794d8e584 /engines/titanic/star_control/star_view.cpp
parent9a98b32a11270e9ac0f40798ddc457aef138fe0a (diff)
downloadscummvm-rg350-e830ddbc70c84060de2cb78e315990850e504b06.tar.gz
scummvm-rg350-e830ddbc70c84060de2cb78e315990850e504b06.tar.bz2
scummvm-rg350-e830ddbc70c84060de2cb78e315990850e504b06.zip
TITANIC: Bring movement rates in the starfield closer to the original
The original updated the camera during the general scene drawing, which was done at a much higher rate than I wanted for the ScummVM implementation. So I've added this workaround to update the camera every 10ms when the player is in the star control scene. This gives it a comparible rate of movement to the original.
Diffstat (limited to 'engines/titanic/star_control/star_view.cpp')
-rw-r--r--engines/titanic/star_control/star_view.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/titanic/star_control/star_view.cpp b/engines/titanic/star_control/star_view.cpp
index f1adaf640d..a5028374ff 100644
--- a/engines/titanic/star_control/star_view.cpp
+++ b/engines/titanic/star_control/star_view.cpp
@@ -256,6 +256,9 @@ void CStarView::resetPosition() {
}
bool CStarView::updateCamera() {
+ if (_fader.isActive() || _showingPhoto)
+ return false;
+
if (_videoSurface) {
CErrorCode errorCode;
_camera.updatePosition(&errorCode);