fixed issue panic in console/file input
This commit is contained in:
@ -31,8 +31,12 @@ game_command console_input::get_command() {
|
||||
game_command_panic
|
||||
? tmp : tmp - move_north +
|
||||
(use ? apply_north : attack_north));
|
||||
} else // is just moving
|
||||
return get_direction(cmd);
|
||||
} else {
|
||||
auto tmp = get_direction(cmd);
|
||||
|
||||
if (tmp != game_command_panic)
|
||||
return tmp;
|
||||
}
|
||||
|
||||
return game_command_pass;
|
||||
}
|
||||
|
Reference in New Issue
Block a user