revert 2009-03-03T04:36:38Z!cjhopman@gmail.com

This commit is contained in:
Chris Hopman 2009-03-03 20:50:52 +00:00
parent 4e70c973c3
commit 35d5ac7d1a

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 - '0' : 1;
event.key.keysym.sym - '1' : 0;
if(new_path_turns != mouse_handler_.get_path_turns()) {
mouse_handler_.set_path_turns(new_path_turns);