aboutsummaryrefslogtreecommitdiff
path: root/gfx.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gfx.cpp')
-rw-r--r--gfx.cpp19
1 files changed, 16 insertions, 3 deletions
diff --git a/gfx.cpp b/gfx.cpp
index 9e5617c3c8..3aafdc4ba0 100644
--- a/gfx.cpp
+++ b/gfx.cpp
@@ -17,6 +17,9 @@
*
* Change Log:
* $Log$
+ * Revision 1.10 2001/10/29 23:07:24 strigeus
+ * better MI1 compatibility
+ *
* Revision 1.9 2001/10/26 17:34:50 strigeus
* bug fixes, code cleanup
*
@@ -1556,13 +1559,23 @@ void Scumm::panCameraTo(int x) {
}
void Scumm::actorFollowCamera(int act) {
- int old = camera._follows;
+ int old;
+ CameraData *cd = &camera;
+ /* mi1 compatibilty */
+ if (act==0) {
+ cd->_mode = 1;
+ cd->_follows = 0;
+ cd->_movingToActor = 0;
+ return;
+ }
+
+ old = cd->_follows;
setCameraFollows(derefActorSafe(act, "actorFollowCamera"));
- if (camera._follows != old)
+ if (cd->_follows != old)
runHook(0);
- camera._movingToActor = 0;
+ cd->_movingToActor = 0;
}
void Scumm::setCameraAtEx(int at) {