From 6edff0dea52389801a093ac6311dd66d01587605 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Sun, 12 May 2024 16:29:03 +0200 Subject: new objects and tiles --- src/editor.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/editor.c') diff --git a/src/editor.c b/src/editor.c index 050d762..9295d14 100644 --- a/src/editor.c +++ b/src/editor.c @@ -40,7 +40,8 @@ static void update_tile_editor(platform_window* window) { case PLACING_TILE: if (is_left_down()) { map_to_load.tiles[pos.y][pos.x] = tile_to_place; - load_mapdata_into_world(); + loaded_map.heightmap[pos.y][pos.x].type = tile_to_place; + //load_mapdata_into_world(); printf("%d %d\n", pos.x, pos.y); } break; -- cgit v1.2.3-70-g09d2