summaryrefslogtreecommitdiff
path: root/src/editor.c
diff options
context:
space:
mode:
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;