diff --git a/src/menu.cpp b/src/menu.cpp index cb23b774cc8..bc9f929d840 100644 --- a/src/menu.cpp +++ b/src/menu.cpp @@ -852,7 +852,6 @@ TITLE_RESULT show_title(display& screen) for(;;) { int mousex, mousey; const int mouse_flags = SDL_GetMouseState(&mousex,&mousey); - const bool left_button = mouse_flags&SDL_BUTTON_LMASK; if(tutorial_button.process(mousex,mousey,left_button)) diff --git a/src/playlevel.cpp b/src/playlevel.cpp index 2d7b5303a29..5e3c4940997 100644 --- a/src/playlevel.cpp +++ b/src/playlevel.cpp @@ -110,16 +110,15 @@ LEVEL_RESULT play_level(game_data& gameinfo, config& terrain_config, (*overlay)->values["image"]); } - const double scroll_speed = 30.0; - const double zoom_amount = 5.0; + //UNUSED: const double scroll_speed = 30.0; + //UNUSED: const double zoom_amount = 5.0; for(units_map::iterator i = units.begin(); i != units.end(); ++i) { i->second.new_turn(); } - bool left_button = false, right_button = false; - - gamemap::location selected_hex; + //UNUSED: bool left_button = false, right_button = false; + //UNUSED: gamemap::location selected_hex; gui.scroll_to_tile(map.starting_position(1).x,map.starting_position(1).y, display::WARP); diff --git a/src/playturn.cpp b/src/playturn.cpp index eaa5cabb0f0..f2ac85dc4b3 100644 --- a/src/playturn.cpp +++ b/src/playturn.cpp @@ -46,7 +46,7 @@ void play_turn(game_data& gameinfo, game_state& state_of_game, team& current_team = teams[team_num-1]; const double scroll_speed = 30.0; - const double zoom_amount = 5.0; + //UNUSED: const double zoom_amount = 5.0; const std::string menu_items[] = {"scenario_objectives","recruit", "recall","unit_list","save_game", @@ -129,12 +129,11 @@ void play_turn(game_data& gameinfo, game_state& state_of_game, hex != selected_hex && enemy->second.side() != u->second.side()) { - const unit_type& type = u->second.type(); - const unit_type& enemy_type = enemy->second.type(); + //UNUSED: const unit_type& type = u->second.type(); + //UNUSED: const unit_type& enemy_type = enemy->second.type(); const std::vector& attacks = u->second.attacks(); std::vector items; - const std::vector& defends = - enemy->second.attacks(); + //UNUSED: const std::vector& defends = enemy->second.attacks(); std::vector units_list; diff --git a/src/preferences.cpp b/src/preferences.cpp index 215261eb721..c57499fe83e 100644 --- a/src/preferences.cpp +++ b/src/preferences.cpp @@ -202,7 +202,7 @@ void set_grid(bool ison) void show_preferences_dialog(display& disp) { - const int border_size = 6; + //UNUSED: const int border_size = 6; const int xpos = disp.x()/2 - 300; const int ypos = disp.y()/2 - 200; const int width = 600; @@ -286,7 +286,7 @@ void show_preferences_dialog(display& disp) const int mouse_flags = SDL_GetMouseState(&mousex,&mousey); const bool left_button = mouse_flags&SDL_BUTTON_LMASK; - const bool right_button = mouse_flags&SDL_BUTTON_RMASK; + //UNUSED: const bool right_button = mouse_flags&SDL_BUTTON_RMASK; if(close_button.process(mousex,mousey,left_button)) { break;