Skip to content

Commit 92a001b

Browse files
committed
fixed done callback
1 parent ac6d0b5 commit 92a001b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

multiagent/environment.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,11 @@ def _get_obs(self, agent):
127127
return self.observation_callback(agent, self.world)
128128

129129
# get dones for a particular agent
130+
# unused right now -- agents are allowed to go beyond the viewing screen
130131
def _get_done(self, agent):
131132
if self.done_callback is None:
132133
return False
133-
return self.observation_callback(agent, self.world)
134+
return self.done_callback(agent, self.world)
134135

135136
# get reward for a particular agent
136137
def _get_reward(self, agent):

0 commit comments

Comments
 (0)