Skip to content

Commit 70e2c0d

Browse files
authored
Update utils.py
1 parent 6f33b43 commit 70e2c0d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

godot_rl/core/utils.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,9 @@ def action_space(self):
9090

9191
def to_original_dist(self, action):
9292
if not self._convert:
93-
if self._only_one_action_space and self._all_actions_discrete:
94-
return [action]
95-
else:
96-
return action
93+
return action
94+
elif self._only_one_action_space and self._all_actions_discrete:
95+
return [action]
9796

9897
original_action = []
9998
counter = 0

0 commit comments

Comments
 (0)