mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-07 23:48:56 +00:00
Remove unused parameter from dialogs.cpp.
This commit is contained in:
parent
5028a2a1f7
commit
8a4607db34
@ -723,11 +723,11 @@ void unit_preview_pane::process_event()
|
||||
{
|
||||
if(map_ != NULL && details_button_.pressed() && index_ >= 0 && index_ < int(units_->size())) {
|
||||
|
||||
show_unit_description(disp(),*map_,(*units_)[index_]);
|
||||
show_unit_description(disp(), (*units_)[index_]);
|
||||
}
|
||||
}
|
||||
|
||||
void show_unit_description(display& disp, const gamemap& map, const unit& u)
|
||||
void show_unit_description(display& disp, const unit& u)
|
||||
{
|
||||
help::show_help(disp,"unit_" + u.type().id());
|
||||
}
|
||||
|
@ -86,7 +86,7 @@ private:
|
||||
bool weapons_;
|
||||
};
|
||||
|
||||
void show_unit_description(display& disp, const gamemap& map, const unit& u);
|
||||
void show_unit_description(display& disp, const unit& u);
|
||||
|
||||
|
||||
class campaign_preview_pane : public gui::preview_pane
|
||||
|
@ -1334,7 +1334,7 @@ void turn_info::unit_description()
|
||||
{
|
||||
const unit_map::const_iterator un = current_unit();
|
||||
if(un != units_.end()) {
|
||||
dialogs::show_unit_description(gui_,map_,un->second);
|
||||
dialogs::show_unit_description(gui_, un->second);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user