From 88276e91d97b5c1d7c55ff440ba945db27a80980 Mon Sep 17 00:00:00 2001 From: Denis Kasak Date: Wed, 5 Aug 2009 00:05:36 +0000 Subject: Fixed second call to Surface::centerOnX() (should have been centerOnY()). svn-id: r43058 --- engines/draci/script.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/draci') 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 ¶ms) { // 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); -- cgit v1.2.3