]> git.sur5r.net Git - c128-kasse/commitdiff
bugfix: printing toggle
authorsECuRE <sECuRE@af93e077-1a23-4f1e-9cbe-9382a9d578f5>
Sat, 28 Jul 2007 18:48:33 +0000 (18:48 +0000)
committersECuRE <sECuRE@af93e077-1a23-4f1e-9cbe-9382a9d578f5>
Sat, 28 Jul 2007 18:48:33 +0000 (18:48 +0000)
git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@15 af93e077-1a23-4f1e-9cbe-9382a9d578f5

kasse.c

diff --git a/kasse.c b/kasse.c
index f1116b0919add8f8600d19a8e108cc73b3b43c17..ab9f3960a86e9d034bdd5af8ba9272b57186b26c 100644 (file)
--- a/kasse.c
+++ b/kasse.c
@@ -62,7 +62,8 @@ void buy(uc n) {
                money += status[n].price * einheiten;
                items_sold += einheiten;
                // TODO: NULL in nickname des guthabenden ändern
-               print_log(n, einheiten, NULL);
+               if (printing == 1)
+                       print_log(n, einheiten, NULL);
        }
 }