aboutsummaryrefslogtreecommitdiff
path: root/engines/draci
diff options
context:
space:
mode:
authorDenis Kasak2009-08-05 00:05:36 +0000
committerDenis Kasak2009-08-05 00:05:36 +0000
commit88276e91d97b5c1d7c55ff440ba945db27a80980 (patch)
treecaf8b5334580308a6eee56bbcdd6661463c0d1bf /engines/draci
parent71dbb75031622432f94c38c4024c4253033d3747 (diff)
downloadscummvm-rg350-88276e91d97b5c1d7c55ff440ba945db27a80980.tar.gz
scummvm-rg350-88276e91d97b5c1d7c55ff440ba945db27a80980.tar.bz2
scummvm-rg350-88276e91d97b5c1d7c55ff440ba945db27a80980.zip
Fixed second call to Surface::centerOnX() (should have been centerOnY()).
svn-id: r43058
Diffstat (limited to 'engines/draci')
-rw-r--r--engines/draci/script.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/draci/script.cpp b/engines/draci/script.cpp
index cac8b0f7d4..17cdefe009 100644
--- a/engines/draci/script.cpp
+++ b/engines/draci/script.cpp
@@ -566,7 +566,7 @@ void Script::talk(Common::Queue<int> &params) {
// Set speech text coordinates
int x = surface->centerOnX(person->_x, speechFrame->getWidth());
- int y = surface->centerOnX(person->_y, speechFrame->getHeight() * 2);
+ int y = surface->centerOnY(person->_y, speechFrame->getHeight() * 2);
speechFrame->setX(x);
speechFrame->setY(y);