aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction/disk_br.cpp
diff options
context:
space:
mode:
authorNicola Mettifogo2008-07-29 03:14:35 +0000
committerNicola Mettifogo2008-07-29 03:14:35 +0000
commitc8400e97251ce8d494bb102f9dd4706ac1dc6b7d (patch)
tree3f573f66f4d517fbd155883e88a0c59985c40ba2 /engines/parallaction/disk_br.cpp
parente5c09b018ae0ebead3c5310637e354a7d023bba8 (diff)
downloadscummvm-rg350-c8400e97251ce8d494bb102f9dd4706ac1dc6b7d.tar.gz
scummvm-rg350-c8400e97251ce8d494bb102f9dd4706ac1dc6b7d.tar.bz2
scummvm-rg350-c8400e97251ce8d494bb102f9dd4706ac1dc6b7d.zip
* Fixed positioning of balloons and faces in BRA (dos, at least).
* Adapted loading of faces. svn-id: r33392
Diffstat (limited to 'engines/parallaction/disk_br.cpp')
-rw-r--r--engines/parallaction/disk_br.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/engines/parallaction/disk_br.cpp b/engines/parallaction/disk_br.cpp
index 34186f52c2..4de3048a1f 100644
--- a/engines/parallaction/disk_br.cpp
+++ b/engines/parallaction/disk_br.cpp
@@ -144,7 +144,16 @@ GfxObj* DosDisk_br::loadTalk(const char *name) {
Common::File stream;
stream.open(node);
- return new GfxObj(0, createSprites(stream), name);
+
+ // talk position is set to (0,0), because talks are always displayed at
+ // absolute coordinates, set in the dialogue manager. The original used
+ // to null out coordinates every time they were needed. We do it better!
+ Sprites *spr = createSprites(stream);
+ for (int i = 0; i < spr->getNum(); i++) {
+ spr->_sprites[i].x = 0;
+ spr->_sprites[i].y = 0;
+ }
+ return new GfxObj(0, spr, name);
}
Script* DosDisk_br::loadLocation(const char *name) {