From 5ab278c96b64edf4a8f954f371abb10efd31ca09 Mon Sep 17 00:00:00 2001 From: David PC Saiz Date: Thu, 9 Feb 2023 00:35:25 +0100 Subject: [PATCH] refactoring: Variable umbenannt --- build/artifacts/release/Paper-Bin.out | Bin 21464 -> 21464 bytes build/release/Paper-Bin.out | Bin 21464 -> 21464 bytes build/release/out/c/Paper-Bin.o | Bin 13760 -> 13760 bytes src/Paper-Bin.c | 12 ++++++------ 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/build/artifacts/release/Paper-Bin.out b/build/artifacts/release/Paper-Bin.out index 04af6c2d5b4e0b49a529ba6555675247fa8ba797..77d7a106dd4b0e660db7216461386389d863ff66 100644 GIT binary patch delta 247 zcmcbyobkqT#tm$)!cq(>!3aR6bF+AlNH^>CC!)_ z7z7z486*NAN?`7>0jbgS1<5i=GH5_$p~f&oLUk#?bZxG5vtgdR-}4M-PFap$X>L+# P(d64~(wmoh8FK;vAU`XP delta 235 zcmcbyobkqT#tm$)!jcRM0SsWk0-+eDPiAx#mt4xkz#zaN#h?O}g-SAPoNNe`-3F8u z1j@<;qv|~{Inh;|@%-dQXK}`dAky#)P^A#iBw;CtN@r#W%><-D;$gB7{!R$RATaqO z&;&&gDQN{%1F|In&4mt=72U)c-M}itCkMKTZ*FiiW#-H&%gHOvO-e1Ayv6hETpG%5iA diff --git a/build/release/Paper-Bin.out b/build/release/Paper-Bin.out index 04af6c2d5b4e0b49a529ba6555675247fa8ba797..77d7a106dd4b0e660db7216461386389d863ff66 100755 GIT binary patch delta 247 zcmcbyobkqT#tm$)!cq(>!3aR6bF+AlNH^>CC!)_ z7z7z486*NAN?`7>0jbgS1<5i=GH5_$p~f&oLUk#?bZxG5vtgdR-}4M-PFap$X>L+# P(d64~(wmoh8FK;vAU`XP delta 235 zcmcbyobkqT#tm$)!jcRM0SsWk0-+eDPiAx#mt4xkz#zaN#h?O}g-SAPoNNe`-3F8u z1j@<;qv|~{Inh;|@%-dQXK}`dAky#)P^A#iBw;CtN@r#W%><-D;$gB7{!R$RATaqO z&;&&gDQN{%1F|In&4mt=72U)c-M}itCkMKTZ*FiiW#-H&%gHOvO-e1Ayv6hETpG%5iA diff --git a/build/release/out/c/Paper-Bin.o b/build/release/out/c/Paper-Bin.o index b245f29f728cce9f7b4b14777c37682c259b27a3..18a83f2dda52d8712a6d08264e139d5fd06d2d31 100644 GIT binary patch delta 14 VcmX?*eIR>7r6i-@<|;`y82~Y~1&{y$ delta 14 VcmX?*eIR>7r6gnC<|;`y82~bL1+V}B diff --git a/src/Paper-Bin.c b/src/Paper-Bin.c index d0367d2..38b72ad 100644 --- a/src/Paper-Bin.c +++ b/src/Paper-Bin.c @@ -25,7 +25,7 @@ int lifeCount = 3; int ballX = -1; int ballY = 27; int windIntervall = 0; -int lvlnumber = 1; +int lvlNumber = 1; #pragma endregion @@ -149,7 +149,7 @@ void loadLevel(int lvlnum) int main() { - loadLevel(lvlnumber); + loadLevel(lvlNumber); while (1) { clearField(); @@ -161,7 +161,7 @@ int main() { case (1): scorePoints += 50; - loadLevel(++lvlnumber); + loadLevel(++lvlNumber); break; case (2): @@ -169,7 +169,7 @@ int main() lifeCount--; if (lifeCount < 1) { - if (lvlnumber == 1) + if (lvlNumber == 1) { char choice = ' '; printf("Scheint so, als wäre das Spiel eine Nummer zu groß für dich!\n"); @@ -182,7 +182,7 @@ int main() sortScoreboard(); return 0; } - loadLevel(lvlnumber); + loadLevel(lvlNumber); break; } ball_In_Bin = 0; @@ -260,7 +260,7 @@ void generateField() } - if (lvlnumber > 6 && windIntervall % 2 == 0) + if (lvlNumber > 6 && windIntervall % 2 == 0) { windForce < 0 ? (ballX -= windForce * -1) : (ballX += windForce); }