Clean up scattered cases of viewing_team_index + 1
This commit is contained in:
parent
ac9f0674d7
commit
f1be5e4c83
3 changed files with 4 additions and 4 deletions
|
@ -79,7 +79,7 @@ void play_controller::hotkey_handler::objectives(){
|
|||
}
|
||||
|
||||
void play_controller::hotkey_handler::show_statistics(){
|
||||
menu_handler_.show_statistics(gui()->viewing_team_index()+1);
|
||||
menu_handler_.show_statistics(gui()->viewing_team().side());
|
||||
}
|
||||
|
||||
void play_controller::hotkey_handler::unit_list(){
|
||||
|
|
|
@ -71,11 +71,11 @@ void playsingle_controller::hotkey_handler::recall(){
|
|||
}
|
||||
|
||||
void playsingle_controller::hotkey_handler::toggle_shroud_updates(){
|
||||
menu_handler_.toggle_shroud_updates(gui()->viewing_team_index()+1);
|
||||
menu_handler_.toggle_shroud_updates(gui()->viewing_team().side());
|
||||
}
|
||||
|
||||
void playsingle_controller::hotkey_handler::update_shroud_now(){
|
||||
menu_handler_.update_shroud_now(gui()->viewing_team_index()+1);
|
||||
menu_handler_.update_shroud_now(gui()->viewing_team().side());
|
||||
}
|
||||
|
||||
void playsingle_controller::hotkey_handler::end_turn(){
|
||||
|
|
|
@ -1518,7 +1518,7 @@ bool mouse_handler::unit_in_cycle(unit_map::const_iterator it)
|
|||
return false;
|
||||
}
|
||||
|
||||
if(current_team().is_enemy(static_cast<int>(gui().viewing_team_index() + 1)) && it->invisible(it->get_location())) {
|
||||
if(current_team().is_enemy(gui().viewing_team().side()) && it->invisible(it->get_location())) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue