aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2013-11-28 15:00:44 -0500
committerPaul Gilbert2013-11-28 15:00:44 -0500
commit6b61eb62ab8f672be35ced69aa18e9793eb27772 (patch)
treeb3b4cde7679a3c686c53393220a84310f54ad2be
parent0df36b4b1c5f3b5dc0e752a016c6643c0bfee73f (diff)
downloadscummvm-rg350-6b61eb62ab8f672be35ced69aa18e9793eb27772.tar.gz
scummvm-rg350-6b61eb62ab8f672be35ced69aa18e9793eb27772.tar.bz2
scummvm-rg350-6b61eb62ab8f672be35ced69aa18e9793eb27772.zip
TSAGE: R2R fix for zoomed speaking characters appearing correctly
-rw-r--r--engines/tsage/core.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/tsage/core.cpp b/engines/tsage/core.cpp
index 0c17bf92d7..596f056bfe 100644
--- a/engines/tsage/core.cpp
+++ b/engines/tsage/core.cpp
@@ -2748,6 +2748,12 @@ GfxSurface SceneObject::getFrame() {
}
void SceneObject::reposition() {
+ if (g_vm->getGameID() == GType_Ringworld2) {
+ if (!(_flags & OBJFLAG_ZOOMED)) {
+ setZoom(g_globals->_sceneManager._scene->_zoomPercents[MIN(_position.y, (int16)255)]);
+ }
+ }
+
GfxSurface frame = getFrame();
_bounds.resize(frame, _position.x, _position.y - _yDiff, _percent);