From 20ccfda56dfd510a210bf6062b5275d317c2a4a0 Mon Sep 17 00:00:00 2001 From: David PC Saiz Date: Wed, 8 Feb 2023 23:23:13 +0100 Subject: [PATCH] refactoring: Lesbarkeit des Codes verbessert --- src/Paper-Bin.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Paper-Bin.c b/src/Paper-Bin.c index e94c818..0b1a901 100644 --- a/src/Paper-Bin.c +++ b/src/Paper-Bin.c @@ -45,15 +45,15 @@ struct Player int Points; }playerlist[11]; - +//Methode die den Eimer erstellt void buildBin(int width, int heigth) { field[width][heigth] = 'V'; - field[width+1][heigth+1] = '\\'; - field[width+2][heigth+2] = '\\'; - field[width-1][heigth+1] = '/'; - field[width-2][heigth+2] = '/'; - field[width][heigth+1] = ' '; + field[width + 1][heigth + 1] = '\\'; + field[width + 2][heigth + 2] = '\\'; + field[width - 1][heigth + 1] = '/'; + field[width - 2][heigth + 2] = '/'; + field[width][heigth + 1] = ' '; } void loadLevel(int lvlnum)