Godot Clamp Function C