From 420ac2c8f2307ddcbe551972544bbe11f05ee7ff Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Mon, 27 May 2024 19:13:02 +0100 Subject: Avoid function declarator with no prototype errors This is for SDCC 4.4.0 at least. --- game/src/game.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'game/src/game.c') diff --git a/game/src/game.c b/game/src/game.c index 2fea5a3..3f91e23 100644 --- a/game/src/game.c +++ b/game/src/game.c @@ -19,7 +19,7 @@ #define BG_TILE_MAP 0x1800 -void init_map_entities() +void init_map_entities(void) { const uint8_t *m = cur_map; uint8_t typ, last = 0; @@ -83,7 +83,7 @@ void init_map_entities() } -void draw_map() +void draw_map(void) { // draw the map! // @@ -96,7 +96,7 @@ void draw_map() ubox_write_vm((uint8_t *)BG_TILE_MAP, MAP_W * MAP_H, cur_map_data); } -void draw_hud() +void draw_hud(void) { uint8_t i; @@ -189,7 +189,7 @@ uint8_t is_map_elevator_up(uint8_t x, uint8_t y) return (t == 14 || t == 15); } -void update_enemy() +void update_enemy(void) { // check for the player; if alive and not invulnerable! // we use small hit boxes @@ -253,7 +253,7 @@ void update_enemy() spman_alloc_sprite(&sp); } -void update_player() +void update_player(void) { // to know if we need to update the walk animation uint8_t moved = 0; @@ -371,7 +371,7 @@ void update_player() spman_alloc_fixed_sprite(&sp); } -void run_game() +void run_game(void) { uint8_t i; -- cgit v1.2.3