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

@ -341,6 +341,9 @@ Common::Rect Text::getRect(const Displacement &displacement) const {
}
void Text::setFont(const Font *font) {
if (font == _font) {
return;
}
_font = font;
_width = _font->getStringWidth(_text, _spacing);