Refactor get_next_movement_type to improve readability by adjusting variable alignment

This commit is contained in:
2025-05-25 04:30:49 +02:00
parent 33cab8574c
commit 4b61e42ed1

View File

@@ -42,7 +42,6 @@ func switch_movement(movement_type: String) -> void:
func get_next_movement_type() -> String:
var keys: Array = movement_types.keys()
print("Available movement types: ", keys)
var current_index: int = keys.find(current_movement.type)
if current_index == -1:
return default_movement_type