summaryrefslogtreecommitdiffstats
path: root/src/level.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/level.c')
-rw-r--r--src/level.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/level.c b/src/level.c
index 9de9182..73f12a6 100644
--- a/src/level.c
+++ b/src/level.c
@@ -34,9 +34,11 @@ struct db_level {
int player_r;
int player_a;
int player_s;
+ int player_gid;
int target_x;
int target_y;
int target_r;
+ int target_gid;
struct db_ball *balls;
};
@@ -88,9 +90,9 @@ db_level_play(SDL_Renderer *renderer, struct db_level *level)
map_texture = db_map_render(map, renderer);
level->tilesets = db_map_get_tilesets(map);
db_map_get_player(map, &level->player_x, &level->player_y,
- &level->player_r);
+ &level->player_r, &level->player_gid);
db_map_get_target(map, &level->target_x, &level->target_y,
- &level->target_r);
+ &level->target_r, &level->target_gid);
level->balls = db_map_get_balls(map);
if (SDL_RenderClear(renderer) != 0) {