diff --git a/build/test/out/c/casualQuiz.o b/build/test/out/c/casualQuiz.o index f6610de..b947da2 100644 Binary files a/build/test/out/c/casualQuiz.o and b/build/test/out/c/casualQuiz.o differ diff --git a/build/test/out/test_casualQuiz.out b/build/test/out/test_casualQuiz.out index c0a9cc1..79a4f5f 100755 Binary files a/build/test/out/test_casualQuiz.out and b/build/test/out/test_casualQuiz.out differ diff --git a/build/test/results/test_casualQuiz.pass b/build/test/results/test_casualQuiz.pass index 9a74d66..df45a03 100644 --- a/build/test/results/test_casualQuiz.pass +++ b/build/test/results/test_casualQuiz.pass @@ -66,4 +66,4 @@ - Wrong Input! - Wrong Input! - It looks like you havent played the program yet, starting it up... -:time: 0.036940200021490455 +:time: 0.03672930004540831 diff --git a/build/test/results/test_quizduell.pass b/build/test/results/test_quizduell.pass index bc71a11..97738d8 100644 --- a/build/test/results/test_quizduell.pass +++ b/build/test/results/test_quizduell.pass @@ -11,4 +11,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.015534000005573034 +:time: 0.01680129999294877 diff --git a/build/test/results/test_timequiz.pass b/build/test/results/test_timequiz.pass index eecd65d..406e8d0 100644 --- a/build/test/results/test_timequiz.pass +++ b/build/test/results/test_timequiz.pass @@ -11,4 +11,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.013401199947111309 +:time: 0.01873749995138496 diff --git a/build/test/results/test_wwm.pass b/build/test/results/test_wwm.pass index 3fb8737..d4f5fbd 100644 --- a/build/test/results/test_wwm.pass +++ b/build/test/results/test_wwm.pass @@ -11,4 +11,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.013157300068996847 +:time: 0.01488869998138398 diff --git a/src/casualQuiz.c b/src/casualQuiz.c index dc0ef9a..116bead 100644 --- a/src/casualQuiz.c +++ b/src/casualQuiz.c @@ -147,14 +147,11 @@ bool fcheckaufRichtigkeit(int eingabe, int richtige_antwort[], int i) { } void fzaehlernachAuswahl(bool richtig, int* answeredP, int* correctP) { if (richtig == true) { //wenn dei eingabe von vorhin richtig war - int plus = *answeredP + 1; - *answeredP = plus; //hochzählen von der zählervariablen für beantwortete fragen um 1 - int add = *correctP + 1; - *correctP = add; //hochzählen von der zählervariablen für korrekte antworten um 1 + *answeredP = *answeredP + 1; //hochzählen von der zählervariablen für beantwortete fragen um 1 + *correctP = *correctP + 1; //hochzählen von der zählervariablen für korrekte antworten um 1 } else { //wenn die eingabe von vorhin falsch war - int plus = *answeredP + 1; - *answeredP = plus; //hochzählen von der zählervariablen für beantwortete fragen um 1 + *answeredP = *answeredP + 1; //hochzählen von der zählervariablen für beantwortete fragen um 1 } return; }