Skip to content

Commit

Permalink
Coloured prompt for user out of money
Browse files Browse the repository at this point in the history
  • Loading branch information
lysogeny committed Nov 4, 2023
1 parent d2a0d2f commit 89e4c83
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/kasse.c
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,10 @@ static signed int buy(char *name, int32_t price) {
credit->credit);
exit(1);
}
cprintf("\r\n%s hat nicht genug Geld (%s). e) einzahlen a) abbruch t) "
"trotzdem\r\n",
nickname, rest);
cprintf("\r\n%s hat nicht genug Geld (%s)", nickname, rest);
MENU_KEY(" e", "einzahlen");
MENU_KEY(" a", "abbruch");
MENU_KEY(" t", "trotzdem");
c = cgetc();
if (c == 'e') {
deposit_credit(nickname);
Expand Down

0 comments on commit 89e4c83

Please sign in to comment.