summaryrefslogtreecommitdiff
path: root/src/editor.c
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrikboy@gmail.com>2024-05-12 16:29:03 +0200
committerAldrik Ramaekers <aldrikboy@gmail.com>2024-05-12 16:29:03 +0200
commit6edff0dea52389801a093ac6311dd66d01587605 (patch)
treefb08fb602f1fade20c7a8573bbdee744612cc142 /src/editor.c
parentf4611412d0743084fb47d67b8924968d0b0acf97 (diff)
new objects and tiles
Diffstat (limited to 'src/editor.c')
-rw-r--r--src/editor.c3
1 files changed, 2 insertions, 1 deletions
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;