Fix #2681: minimap buttons don't do anything
Regression from commit ecc0dca665
.
This commit is contained in:
parent
b6702d616f
commit
5fa0581bc0
3 changed files with 24 additions and 22 deletions
|
@ -1,4 +1,6 @@
|
|||
## Version 1.13.12+dev
|
||||
### Miscellaneous and bug fixes
|
||||
* Fixed minimap buttons not doing anything (bug #2681)
|
||||
|
||||
## Version 1.13.12
|
||||
### Security fixes
|
||||
|
|
|
@ -3,7 +3,8 @@ changes may be omitted). For a complete list of changes, see the main
|
|||
changelog: https://github.com/wesnoth/wesnoth/blob/1.14/changelog.md
|
||||
|
||||
## Version 1.13.13+dev
|
||||
|
||||
### Miscellaneous and bug fixes
|
||||
* Fixed minimap buttons not doing anything (bug #2681)
|
||||
|
||||
## Version 1.13.12
|
||||
### Security fixes
|
||||
|
|
|
@ -357,6 +357,26 @@ bool command_executor::do_execute_command(const hotkey_command& cmd, int /*inde
|
|||
case HOTKEY_SURRENDER:
|
||||
surrender_game();
|
||||
break;
|
||||
case HOTKEY_MINIMAP_DRAW_TERRAIN:
|
||||
preferences::toggle_minimap_draw_terrain();
|
||||
recalculate_minimap();
|
||||
break;
|
||||
case HOTKEY_MINIMAP_CODING_TERRAIN:
|
||||
preferences::toggle_minimap_terrain_coding();
|
||||
recalculate_minimap();
|
||||
break;
|
||||
case HOTKEY_MINIMAP_CODING_UNIT:
|
||||
preferences::toggle_minimap_movement_coding();
|
||||
recalculate_minimap();
|
||||
break;
|
||||
case HOTKEY_MINIMAP_DRAW_UNITS:
|
||||
preferences::toggle_minimap_draw_units();
|
||||
recalculate_minimap();
|
||||
break;
|
||||
case HOTKEY_MINIMAP_DRAW_VILLAGES:
|
||||
preferences::toggle_minimap_draw_villages();
|
||||
recalculate_minimap();
|
||||
break;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
|
@ -571,27 +591,6 @@ void command_executor::execute_command(const SDL_Event& event, int index)
|
|||
}
|
||||
|
||||
switch (command.id) {
|
||||
|
||||
case HOTKEY_MINIMAP_DRAW_TERRAIN:
|
||||
preferences::toggle_minimap_draw_terrain();
|
||||
recalculate_minimap();
|
||||
break;
|
||||
case HOTKEY_MINIMAP_CODING_TERRAIN:
|
||||
preferences::toggle_minimap_terrain_coding();
|
||||
recalculate_minimap();
|
||||
break;
|
||||
case HOTKEY_MINIMAP_CODING_UNIT:
|
||||
preferences::toggle_minimap_movement_coding();
|
||||
recalculate_minimap();
|
||||
break;
|
||||
case HOTKEY_MINIMAP_DRAW_UNITS:
|
||||
preferences::toggle_minimap_draw_units();
|
||||
recalculate_minimap();
|
||||
break;
|
||||
case HOTKEY_MINIMAP_DRAW_VILLAGES:
|
||||
preferences::toggle_minimap_draw_villages();
|
||||
recalculate_minimap();
|
||||
break;
|
||||
case HOTKEY_FULLSCREEN:
|
||||
CVideo::get_singleton().toggle_fullscreen();
|
||||
break;
|
||||
|
|
Loading…
Add table
Reference in a new issue