diff --git a/assets/audio/units/ant_move.wav.import b/assets/audio/units/ant_move.wav.import index 948deec..b63ffd3 100644 --- a/assets/audio/units/ant_move.wav.import +++ b/assets/audio/units/ant_move.wav.import @@ -18,7 +18,7 @@ force/max_rate=false force/max_rate_hz=44100 edit/trim=false edit/normalize=false -edit/loop_mode=0 +edit/loop_mode=2 edit/loop_begin=0 edit/loop_end=-1 compress/mode=0 diff --git a/assets/audio/units/bug_move_1.wav.import b/assets/audio/units/bug_move_1.wav.import index de18071..bd473bd 100644 --- a/assets/audio/units/bug_move_1.wav.import +++ b/assets/audio/units/bug_move_1.wav.import @@ -18,7 +18,7 @@ force/max_rate=false force/max_rate_hz=44100 edit/trim=false edit/normalize=false -edit/loop_mode=0 +edit/loop_mode=2 edit/loop_begin=0 edit/loop_end=-1 compress/mode=0 diff --git a/assets/audio/units/bug_move_2.wav.import b/assets/audio/units/bug_move_2.wav.import index 4280cda..1c6287c 100644 --- a/assets/audio/units/bug_move_2.wav.import +++ b/assets/audio/units/bug_move_2.wav.import @@ -18,7 +18,7 @@ force/max_rate=false force/max_rate_hz=44100 edit/trim=false edit/normalize=false -edit/loop_mode=0 +edit/loop_mode=2 edit/loop_begin=0 edit/loop_end=-1 compress/mode=0 diff --git a/scripts/units/components/gathering.gd b/scripts/units/components/gathering.gd index 2aa2bd5..f28de8d 100644 --- a/scripts/units/components/gathering.gd +++ b/scripts/units/components/gathering.gd @@ -237,7 +237,10 @@ func _on_nav_agent_navigation_finished() -> void: if state == State.PICKING_UP: _pick_up() - if state == State.DEPOSITING: + if ( + state == State.DEPOSITING + and global_position.distance_to(_unit.anthill.global_position) < 1 + ): _deposit()