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:
parent
1526fda715
commit
a20e42efb9
7 changed files with 254 additions and 192 deletions
|
@ -728,10 +728,9 @@ void Script::talk(Common::Queue<int> ¶ms) {
|
|||
|
||||
// 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> ¶ms) {
|
|||
|
||||
void Script::roomMap(Common::Queue<int> ¶ms) {
|
||||
// Load the default walking map for the room
|
||||
_vm->_game->loadWalkingMap();
|
||||
_vm->_game->loadWalkingMap(-1);
|
||||
}
|
||||
|
||||
void Script::disableQuickHero(Common::Queue<int> ¶ms) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue