# HG changeset patch # User David Demelier # Date 1694456131 -7200 # Node ID 19707e3ad04865c6bfa7d1133d2500e92f8befb1 # Parent b826e80c53cded018fffff0fcf327fd4e938f793 misc: style diff -r b826e80c53cd -r 19707e3ad048 libmlk-rpg/mlk/rpg/map.c --- a/libmlk-rpg/mlk/rpg/map.c Tue Sep 05 11:51:52 2023 +0200 +++ b/libmlk-rpg/mlk/rpg/map.c Mon Sep 11 20:15:31 2023 +0200 @@ -98,9 +98,9 @@ */ static int is_block_relevant(const struct mlk_map *map, - const struct mlk_map_block *block, - int drow, - int dcol) + const struct mlk_map_block *block, + int drow, + int dcol) { if (drow) { /* Object outside of left-right bounds. */ @@ -139,7 +139,6 @@ (drow > 0 && new->y < now->y) || (dcol < 0 && new->x + new->w > now->x + now->w) || (dcol > 0 && new->x < now->x)); - } static void @@ -565,7 +564,7 @@ static void draw_collide(const struct mlk_map *map) { - struct mlk_texture box = {0}; + struct mlk_texture box = {}; if (map->flags & MLK_MAP_FLAGS_SHOW_COLLIDE && mlk_texture_new(&box, 64, 64) == 0) { /* Draw collide box around player if requested. */