diff options
author | Juan J. Martinez <jjm@usebox.net> | 2024-05-27 19:13:02 +0100 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2024-05-27 19:13:02 +0100 |
commit | 420ac2c8f2307ddcbe551972544bbe11f05ee7ff (patch) | |
tree | 70748bd36a378f3a44ccb720e2776030eac956f2 /game/src/game.c | |
parent | 0b3ba3e708899145296e3b6c1496ff87efe6a6c7 (diff) | |
download | ubox-msx-lib-420ac2c8f2307ddcbe551972544bbe11f05ee7ff.tar.gz ubox-msx-lib-420ac2c8f2307ddcbe551972544bbe11f05ee7ff.zip |
Avoid function declarator with no prototype errors
This is for SDCC 4.4.0 at least.
Diffstat (limited to 'game/src/game.c')
-rw-r--r-- | game/src/game.c | 12 |
1 files changed, 6 insertions, 6 deletions
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; |