aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorNicola Mettifogo2009-01-20 11:07:27 +0000
committerNicola Mettifogo2009-01-20 11:07:27 +0000
commit545b76876a6945d6951b5eb3db91997ea49a9acd (patch)
treef62d5663e71750fe4a82a720f2ce40e2e70907d3 /engines
parent3e611e1eb79dad1b3a2213446df42261d5b5bf71 (diff)
downloadscummvm-rg350-545b76876a6945d6951b5eb3db91997ea49a9acd.tar.gz
scummvm-rg350-545b76876a6945d6951b5eb3db91997ea49a9acd.tar.bz2
scummvm-rg350-545b76876a6945d6951b5eb3db91997ea49a9acd.zip
Character is now placed at the right spot when a new location is entered. Size may be still not right, though.
svn-id: r35945
Diffstat (limited to 'engines')
-rw-r--r--engines/parallaction/parallaction_br.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/parallaction/parallaction_br.cpp b/engines/parallaction/parallaction_br.cpp
index 5989d2c9b1..bb9e5a3f82 100644
--- a/engines/parallaction/parallaction_br.cpp
+++ b/engines/parallaction/parallaction_br.cpp
@@ -255,6 +255,14 @@ void Parallaction_br::changeLocation(char *location) {
freeLocation(false);
// load new location
parseLocation(location);
+
+ if (_location._startPosition.x != -1000) {
+ _char.setFoot(_location._startPosition);
+ _char._ani->setF(_location._startFrame);
+ _location._startPosition.y = -1000;
+ _location._startPosition.x = -1000;
+ }
+
// kFlagsRemove is cleared because the character is visible by default.
// Commands can hide the character, anyway.
_char._ani->_flags &= ~kFlagsRemove;