This commit is contained in:
Chris Hopman 2009-03-03 04:36:38 +00:00
parent 52bdbab51d
commit 6fee9b6b06

View file

@ -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);