Skip to content

Commit

Permalink
Move function declarations out of function block
Browse files Browse the repository at this point in the history
  • Loading branch information
Qrox committed Apr 15, 2020
1 parent e09782e commit c6a58a2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -428,16 +428,19 @@ void game::load_data_from_dir( const std::string &path, const std::string &src,
#define MINIMAP_HEIGHT 7
#define MINIMAP_WIDTH 7

#if !(defined(_WIN32) || defined(TILES))
// in ncurses_def.cpp
void check_encoding();
void ensure_term_size();
#endif

void game::init_ui( const bool resized )
{
// clear the screen
static bool first_init = true;

if( first_init ) {
#if !(defined(_WIN32) || defined(TILES))
// in ncurses_def.cpp
void check_encoding();

check_encoding();
#endif

Expand All @@ -461,9 +464,6 @@ void game::init_ui( const bool resized )
get_options().save();
}
#else
// in ncurses_def.cpp
void ensure_term_size();

( void ) resized;
ensure_term_size();

Expand Down

0 comments on commit c6a58a2

Please sign in to comment.