From 95707529b99a678f756932e52dbc08ce77a1ac45 Mon Sep 17 00:00:00 2001 From: sECuRE Date: Thu, 25 Oct 2007 16:07:18 +0000 Subject: [PATCH] Bugfix: remove sleep(1), which breaks the program git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@63 af93e077-1a23-4f1e-9cbe-9382a9d578f5 --- src/credit_manager.c | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/src/credit_manager.c b/src/credit_manager.c index 35ea372..870ca63 100644 --- a/src/credit_manager.c +++ b/src/credit_manager.c @@ -41,34 +41,29 @@ static void credit_print_screen() { cprintf("\r\nn) Neu d) Loeschen p) Einzahlen b) Seite hoch f) Seite runter\r\ng) Filtern e) Aendern s) Speichern z) Zurueck\r\n"); } -static struct credits_t * find_credit(char * name){ +static struct credits_t *find_credit(char *name){ int i; - for (i=0;icredit += deposit; toggle_videomode(); - cprintf("%d Cent eingezahlt fuer %s. Restguthaben: %d\r\n", deposit, credit->nickname, credit->credit); - sleep(1); + cprintf("%d Cent eingezahlt fuer %s.\r\nRestguthaben: %d\r\n", deposit, credit->nickname, credit->credit); + toggle_videomode(); + cprintf("\r\nEinzahlung durchgefuehrt, drucke RETURN...\r\n"); + input = get_input(); + toggle_videomode(); clrscr(); toggle_videomode(); } -- 2.39.5