From 771d844bc45b7f742df8ecd0f105f574fa58dba3 Mon Sep 17 00:00:00 2001 From: mibi88 <76903855+mibi88@users.noreply.github.com> Date: Thu, 1 Aug 2024 19:11:11 +0200 Subject: [PATCH] Ran clang-format. --- src/game.c | 2 +- src/inventory.h | 2 -- src/main.c | 7 ++++--- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/game.c b/src/game.c index 36e86b3..25b94eb 100644 --- a/src/game.c +++ b/src/game.c @@ -2,8 +2,8 @@ #include "config.h" #include "map.h" -#include "npc.h" #include "mapdata.h" +#include "npc.h" #include #include diff --git a/src/inventory.h b/src/inventory.h index 44c8613..2c41b82 100644 --- a/src/inventory.h +++ b/src/inventory.h @@ -4,6 +4,4 @@ /* The structs related to the inventory are defined in game.h */ #include "game.h" - - #endif diff --git a/src/main.c b/src/main.c index 9f25dbc..986e4ea 100644 --- a/src/main.c +++ b/src/main.c @@ -120,9 +120,10 @@ int main(void) { extern char *_message_buffer; _message_buffer = NULL; _message_buffer = malloc(MESSAGE_BUFFER_SZ); - if(!_message_buffer){ - dtext(64, 64, C_BLACK, "Failed to allocate the message buffer: not " - "enough RAM available. Press any key to quit."); + if(!_message_buffer) { + dtext(64, 64, C_BLACK, + "Failed to allocate the message buffer: not " + "enough RAM available. Press any key to quit."); dupdate(); getkey(); return 0;