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
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue