Start using dynamic_casts where appropriate, cleaned up some bugs

This commit is contained in:
2011-07-01 23:24:41 -04:00
parent 2bdc7e0e59
commit 306f3d0c17
5 changed files with 10 additions and 12 deletions

View File

@ -122,6 +122,7 @@ void Game::draw_stats(Vertex* v)
int y = display->h - (num_lines * 14) - 20;
DrawUtils::draw_text(display, "player:", x, y, font);
DrawUtils::draw_text(display, dynamic_cast<GameVertex*>(v)->player->get_name(), x + 50, y, font);
DrawUtils::draw_text(display, "str:", x, y + 14, font);
DrawUtils::draw_text(display, itos(data.calculate_strength(v)),