1
Fork 0
mirror of https://github.com/Steffo99/hella-farm.git synced 2024-11-25 09:34:24 +00:00

Remove debug logging from SamplerPriority

This commit is contained in:
Steffo 2024-04-19 01:49:22 +02:00
parent c2dd8a61cd
commit 782d752c3e
Signed by: steffo
GPG key ID: 5ADA3868646C3FC0

View file

@ -13,14 +13,12 @@ func sample() -> Priority:
# FIXME: Change this to something more efficient when needed # FIXME: Change this to something more efficient when needed
var highest_possibility: Priority = null var highest_possibility: Priority = null
for possibility in possibilities: for possibility in possibilities:
Log.p(self, "Possibility: %s (%d)" % [possibility, possibility.priority])
if highest_possibility == null or possibility.priority > highest_possibility.priority: if highest_possibility == null or possibility.priority > highest_possibility.priority:
highest_possibility = possibility highest_possibility = possibility
if highest_possibility == null: if highest_possibility == null:
return null return null
Log.p(self, "Sampled: %s (%d)" % [highest_possibility, highest_possibility.priority])
return highest_possibility.get_ref() return highest_possibility.get_ref()
func get_all_refs() -> Array[Node]: func get_all_refs() -> Array[Node]: