Move WalkingMap into new module.

Also, fix a bug when loading the default walking map (wasn't implemented)
and setting font size.  The reason I move this code into a new module is
because I will augment it with other walking-related algorithms soon.

svn-id: r45510
This commit is contained in:
Robert Špalek 2009-10-30 00:52:05 +00:00
parent 1526fda715
commit a20e42efb9
7 changed files with 254 additions and 192 deletions

View file

@ -728,10 +728,9 @@ void Script::talk(Common::Queue<int> &params) {
// HACK: Some strings in the English data files are too long to fit the screen
// This is a temporary resolution.
speechFrame->setFont(_vm->_bigFont);
if (speechFrame->getWidth() >= kScreenWidth) {
speechFrame->setFont(_vm->_smallFont);
} else {
speechFrame->setFont(_vm->_bigFont);
}
// Set the loop substatus to an appropriate value
@ -838,7 +837,7 @@ void Script::exitDialogue(Common::Queue<int> &params) {
void Script::roomMap(Common::Queue<int> &params) {
// Load the default walking map for the room
_vm->_game->loadWalkingMap();
_vm->_game->loadWalkingMap(-1);
}
void Script::disableQuickHero(Common::Queue<int> &params) {