fix: added breaks to switch in move function
This commit is contained in:
parent
bea200b9a1
commit
bf435716e8
1 changed files with 2 additions and 0 deletions
2
main.cpp
2
main.cpp
|
@ -100,9 +100,11 @@ vector<int> move_player(vector<int> player_pos, char input)
|
|||
case 'h':
|
||||
// Print help text to console
|
||||
cout << "Gebe 'w', 'a', 's', oder 'd' ein zum bewegen. Gebe 'h' ein um diesen Text anzuzeigen\n";
|
||||
break;
|
||||
default:
|
||||
// Target action not recognized. Print 'error' message to screen
|
||||
cout << "Diese Eingabe kenne ich nicht. Gib 'h' ein, um eine Hilfe zu erhalten.\n";
|
||||
break;
|
||||
}
|
||||
return player_pos;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue