fix for bug #11031
This commit is contained in:
parent
52bdbab51d
commit
6fee9b6b06
1 changed files with 1 additions and 1 deletions
|
@ -736,7 +736,7 @@ void play_controller::process_keyup_event(const SDL_Event& event) {
|
|||
// how far the unit can move in that many turns
|
||||
if(event.key.keysym.sym >= '1' && event.key.keysym.sym <= '7') {
|
||||
const int new_path_turns = (event.type == SDL_KEYDOWN) ?
|
||||
event.key.keysym.sym - '1' : 0;
|
||||
event.key.keysym.sym - '0' : 1;
|
||||
|
||||
if(new_path_turns != mouse_handler_.get_path_turns()) {
|
||||
mouse_handler_.set_path_turns(new_path_turns);
|
||||
|
|
Loading…
Add table
Reference in a new issue