]> git.sur5r.net Git - c128-kasse/commitdiff
fixes
authorsECuRE <sECuRE@af93e077-1a23-4f1e-9cbe-9382a9d578f5>
Sat, 28 Jul 2007 19:51:17 +0000 (19:51 +0000)
committersECuRE <sECuRE@af93e077-1a23-4f1e-9cbe-9382a9d578f5>
Sat, 28 Jul 2007 19:51:17 +0000 (19:51 +0000)
git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@21 af93e077-1a23-4f1e-9cbe-9382a9d578f5

Makefile
config.c
kasse.c

index 2bedcd7d498f1284a4a9b842e6c74a9ae6b062c7..e0cbcd5c1ac3462f9115e9e14ca8a162fca37d27 100644 (file)
--- 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
index fd2f87e32d6bfc9f48991e8337dc5b3b50e16aa7..1d23f7698b4426cce9104433fcaed2cd5eade8e6 100644 (file)
--- 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 894372349b488cbde6c0344137b2cece512982fe..1d0b30e8729faca315291e0d411ec8e8bfc52b5d 100644 (file)
--- 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;
        }