Putting basic TOT handling into its own class

svn-id: r41821
This commit is contained in:
Sven Hesse 2009-06-23 23:55:19 +00:00
parent 7ba3205f58
commit 04d4ce4a8b
8 changed files with 214 additions and 76 deletions

View file

@ -390,7 +390,7 @@ void Draw::printTextCentered(int16 id, int16 left, int16 top, int16 right,
adjustCoords(1, &left, &top);
adjustCoords(1, &right, &bottom);
uint16 centerOffset = _vm->_game->_script->getFunctionOffset(Script::kFunctionCenter);
uint16 centerOffset = _vm->_game->_script->getFunctionOffset(TOTFile::kFunctionCenter);
if (centerOffset != 0) {
_vm->_game->_script->call(centerOffset);