Mercurial > molko
changeset 637:19707e3ad048
misc: style
author | David Demelier <markand@malikania.fr> |
---|---|
date | Mon, 11 Sep 2023 20:15:31 +0200 |
parents | b826e80c53cd |
children | e16808365d42 |
files | libmlk-rpg/mlk/rpg/map.c |
diffstat | 1 files changed, 4 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- 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. */