reduce logging to 0 for rlrease and fix planting bug

This commit is contained in:
Stefan Stefanov 2025-01-08 22:19:36 +02:00
parent cfcc5b9ade
commit 498e5cb4a2
2 changed files with 3 additions and 1 deletions

View file

@ -33,6 +33,8 @@ main :: proc() {
} }
mem.tracking_allocator_destroy(&track) mem.tracking_allocator_destroy(&track)
} }
} else {
rl.SetTraceLogLevel(.NONE)
} }
run() run()

View file

@ -73,7 +73,7 @@ interact_with_tile_under_mouse :: proc(mouse_button: rl.MouseButton) {
} }
} }
case .seeds: case .seeds:
if !tile_data.has_plant { if !tile_data.has_plant && tile_data.is_tiled {
tile_data.has_plant = true tile_data.has_plant = true
tile_data.plant_id = current_hand_item tile_data.plant_id = current_hand_item
tile_data.animation = get_plant_animation(current_hand_item) tile_data.animation = get_plant_animation(current_hand_item)