From 246112d93c0d73eff8741c46043b30019fc34a8a Mon Sep 17 00:00:00 2001 From: quenousimporte Date: Sat, 29 Mar 2025 12:31:42 +0100 Subject: [PATCH] add comment trim trailing spaces --- w/w.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/w/w.c b/w/w.c index 852b217..3f0cd04 100644 --- a/w/w.c +++ b/w/w.c @@ -342,6 +342,7 @@ void clearscreen() { #ifdef _WIN32 system("cls"); + // launch chcp 65001 before #else system("clear"); #endif @@ -364,7 +365,7 @@ void init() void update(char command[CMD_LEN]) { - char c = command[0]; + char c = command[0]; if (state.place == PLACE_MAP) { switch (c) @@ -407,7 +408,7 @@ void update(char command[CMD_LEN]) void draw() { clearscreen(); - + if (state.place == PLACE_TITLE) { printf("\n\n La légende des dongeons de l'espace\n\n\n"); @@ -481,7 +482,7 @@ int main() init(); char command[CMD_LEN] = ""; - + while (command[0] != 'q') { update(command);