Skip to content

Commit 214a041

Browse files
committed
fixed communication bug
1 parent e1ea0c8 commit 214a041

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

multiagent/environment.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,8 @@ def _set_action(self, action, agent, action_space, time=None):
183183
if self.discrete_action_input:
184184
agent.action.c = np.zeros(self.world.dim_c)
185185
agent.action.c[action[0]] = 1.0
186+
else:
187+
agent.action.c = action[0]
186188
action = action[1:]
187189
# make sure we used all elements of action
188190
assert len(action) == 0

0 commit comments

Comments
 (0)