From 498e5cb4a2b214608af0f9895e3939853211fba2 Mon Sep 17 00:00:00 2001 From: Stefan Stefanov Date: Wed, 8 Jan 2025 22:19:36 +0200 Subject: [PATCH] reduce logging to 0 for rlrease and fix planting bug --- src/main.odin | 2 ++ src/tile.odin | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.odin b/src/main.odin index aa25840..258d35e 100644 --- a/src/main.odin +++ b/src/main.odin @@ -33,6 +33,8 @@ main :: proc() { } mem.tracking_allocator_destroy(&track) } + } else { + rl.SetTraceLogLevel(.NONE) } run() diff --git a/src/tile.odin b/src/tile.odin index 0627fdf..8f9f454 100644 --- a/src/tile.odin +++ b/src/tile.odin @@ -73,7 +73,7 @@ interact_with_tile_under_mouse :: proc(mouse_button: rl.MouseButton) { } } case .seeds: - if !tile_data.has_plant { + if !tile_data.has_plant && tile_data.is_tiled { tile_data.has_plant = true tile_data.plant_id = current_hand_item tile_data.animation = get_plant_animation(current_hand_item)