From 396c9c9bfe2cf703bc4ec07f2b0c5a51eec2c354 Mon Sep 17 00:00:00 2001 From: SlyVTT Date: Sun, 9 Jul 2023 21:53:07 +0200 Subject: [PATCH] code made complaitn with the 'max 80-char per line' rule --- src/main.c | 6 ++++-- src/map.c | 6 ++++-- src/mapstruct.h | 3 ++- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/src/main.c b/src/main.c index 63273ae..197d91e 100644 --- a/src/main.c +++ b/src/main.c @@ -41,7 +41,8 @@ Game game = { { if (game.screenshot && usb_is_open()) { - #ifdef GRAYMODEOK // This is a trick, if GRAYMODEOK is defined then we make the code accessible + #ifdef GRAYMODEOK // This is a trick, if GRAYMODEOK is defined then + // we make the code accessible if (dgray_enabled()) usb_fxlink_screenshot_gray(false); @@ -49,7 +50,8 @@ Game game = { #endif - usb_fxlink_screenshot(false); // else we just let the usual screeshot function + // else we just let the usual screeshot function + usb_fxlink_screenshot(false); game.screenshot = false; } diff --git a/src/map.c b/src/map.c index 8c0794d..ff52756 100644 --- a/src/map.c +++ b/src/map.c @@ -93,7 +93,8 @@ void render_map(Player *player, Map *map_level) { // This is for debut only - // I let this portion of code to indicate how the walkable layer can be use to know if tile is accessible and/or if specific behaviour is expected + // I let this portion of code to indicate how the walkable layer can be use + // to know if tile is accessible and/or if specific behaviour is expected // juste uncomment to activate /* @@ -108,7 +109,8 @@ void render_map(Player *player, Map *map_level) { int walkable = map_level->walkable[currentIndex]; // for DEBUG ONLY, we print the ID of the current tile - if (walkable!=0) dprint(x*T_WIDTH-mx + 4, y*T_HEIGHT-my+4, C_RED, "%d", walkable ); + if (walkable!=0) dprint(x*T_WIDTH-mx + 4, y*T_HEIGHT-my+4, + C_RED, "%d", walkable ); } } } diff --git a/src/mapstruct.h b/src/mapstruct.h index aef23a0..4741b0b 100644 --- a/src/mapstruct.h +++ b/src/mapstruct.h @@ -6,7 +6,8 @@ typedef struct { - /* the ID of the tile, as per tiled configuration, first is ID=0, then line by line, each line left to right, +1 at each tile.*/ + /* the ID of the tile, as per tiled configuration, first is ID=0, then line + by line, each line left to right, +1 at each tile.*/ int tileID; /* maximum speed on that tile for the player */ /* Note : Speed = 0 means that the tile is not walkable */