Fixed second call to Surface::centerOnX() (should have been centerOnY()).

svn-id: r43058
This commit is contained in:
Denis Kasak 2009-08-05 00:05:36 +00:00
parent 71dbb75031
commit 88276e91d9

View File

@ -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);