Skip to content

Commit

Permalink
Constify some methods in worldmap.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
tobbi committed Apr 7, 2015
1 parent edd56a6 commit f2ccb15
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/worldmap/worldmap.cpp
Expand Up @@ -1119,7 +1119,7 @@ WorldMap::load_state()
}

size_t
WorldMap::level_count()
WorldMap::level_count() const
{
return levels.size();
}
Expand Down
4 changes: 2 additions & 2 deletions src/worldmap/worldmap.hpp
Expand Up @@ -158,7 +158,7 @@ class WorldMap : public Screen
*/
int tile_data_at(Vector pos);

size_t level_count();
size_t level_count() const;
size_t solved_level_count();

/**
Expand All @@ -170,7 +170,7 @@ class WorldMap : public Screen
/** returns current Tux incarnation */
Tux* get_tux() { return tux.get(); }

Savegame& get_savegame() { return m_savegame; }
Savegame& get_savegame() const { return m_savegame; }

LevelTile* at_level();
SpecialTile* at_special_tile();
Expand Down

0 comments on commit f2ccb15

Please sign in to comment.