From 5503464191e6c1ff91ca4c384bc34464f8cc1945 Mon Sep 17 00:00:00 2001 From: sECuRE Date: Sat, 28 Jul 2007 19:51:17 +0000 Subject: [PATCH] fixes git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@21 af93e077-1a23-4f1e-9cbe-9382a9d578f5 --- Makefile | 2 +- config.c | 4 ++-- kasse.c | 6 ++---- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 2bedcd7..e0cbcd5 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ cc65 -t c128 $< ca65 -t c128 $$(basename $< .c).s -all: config.o kasse.o +all: config.o kasse.o general.o credit_manager.o cl65 -t c128 *.o -o kasse test: config.o test.o diff --git a/config.c b/config.c index fd2f87e..1d23f76 100644 --- a/config.c +++ b/config.c @@ -52,8 +52,8 @@ void load_items() { strcpy(status[1].item_name, "mate"); status[1].price = 150; status[1].times_sold = 0; -/* for (c = 2; c < MAX_ITEMS; ++c) - status[c].item_name = NULL;*/ + for (c = 2; c < MAX_ITEMS; ++c) + status[c].item_name[0] = 0; } void load_state() { diff --git a/kasse.c b/kasse.c index 8943723..1d0b30e 100644 --- a/kasse.c +++ b/kasse.c @@ -5,7 +5,7 @@ #include "general.h" #include "config.h" #include "kasse.h" -//#include "credit_manager.h" +#include "credit_manager.h" // drucker 4 oder 5 // graphic 4,0,10 @@ -71,12 +71,10 @@ int main() { load_config(); /* Einträge (=Getränke) laden */ load_items(); -#if 0 /* Zustand laden */ load_state(); /* Guthaben laden */ load_credits(); -#endif while (1) { /* Bildschirm anzeigen */ print_screen(); @@ -98,7 +96,7 @@ int main() { getchar(); } else if (c == 'g') { /* Guthabenverwalter aufrufen */ -// credit_manager(); + credit_manager(); } else if (c == 'q') break; } -- 2.39.5