From 7c5f7142f76ca1be5eaf3f7795f18f8451aa30d5 Mon Sep 17 00:00:00 2001 From: citrons Date: Sat, 14 Oct 2023 03:35:40 -0500 Subject: formatting --- save.c | 3 ++- world.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/save.c b/save.c index 1207625..6cdf9a6 100644 --- a/save.c +++ b/save.c @@ -22,7 +22,8 @@ static void get_chunk_filename(SDL_Point chunk_pos, filename name) { } static void get_world_filename(filename name) { - int written = SDL_snprintf(name, sizeof(filename), "%sworld.dat", pref_path()); + int written = SDL_snprintf( + name, sizeof(filename), "%sworld.dat", pref_path()); if (written >= sizeof(filename)) die("filename too large\n"); } diff --git a/world.c b/world.c index 6d40110..228823e 100644 --- a/world.c +++ b/world.c @@ -306,7 +306,7 @@ void tick_world(world *w) { player_collect(w, w->player.pos); int to_combine = SDL_min(w->player.scores[TILE_RED], - SDL_min(w->player.scores[TILE_GREEN], w->player.scores[TILE_BLUE])); + SDL_min(w->player.scores[TILE_GREEN], w->player.scores[TILE_BLUE])); w->player.scores[TILE_LIGHT] += to_combine; w->player.scores[TILE_RED] -= to_combine; w->player.scores[TILE_GREEN] -= to_combine; -- cgit v1.2.3