fixed issue panic in console/file input

This commit is contained in:
2024-07-05 21:28:45 -04:00
parent d6503579c4
commit 9495f11c16
3 changed files with 19 additions and 5 deletions

View File

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