From: sECuRE Date: Thu, 25 Oct 2007 16:07:18 +0000 (+0000) Subject: Bugfix: remove sleep(1), which breaks the program X-Git-Tag: rgb2rv6~46 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=95707529b99a678f756932e52dbc08ce77a1ac45;p=c128-kasse 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 --- 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(); }