Skip to content

Commit

Permalink
Remove some unnecessary draw calls when recruiting or recalling
Browse files Browse the repository at this point in the history
I think these were probably there to deal with the GUI1 menus needed to be undrawn under the GUI1 Recruit/Recall
dialogs (dunno if the problem persisted into GUI2). Either way, they're not necessary now, since GUI2 handled the
dialog undrawing.
  • Loading branch information
Vultraz committed Apr 28, 2017
1 parent 17405bc commit d0b9f43
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/menu_events.cpp
Expand Up @@ -263,8 +263,6 @@ void menu_handler::recruit(int side_num, const map_location& last_hex)
{
std::vector<const unit_type*> sample_units;

gui_->draw(); // clear the old menu

std::set<std::string> recruits = actions::get_recruits(side_num, last_hex);

for(const auto& recruit : recruits) {
Expand Down Expand Up @@ -365,8 +363,6 @@ void menu_handler::recall(int side_num, const map_location& last_hex)
recall_list_team = actions::get_recalls(side_num, last_hex);
}

gui_->draw(); // clear the old menu

DBG_WB << "menu_handler::recall: Contents of wb-modified recall list:\n";
for(const unit_const_ptr& unit : recall_list_team) {
DBG_WB << unit->name() << " [" << unit->id() << "]\n";
Expand Down

0 comments on commit d0b9f43

Please sign in to comment.