Skip to content
Snippets Groups Projects
Commit 4ad3eae7 authored by u214892's avatar u214892
Browse files

#167 bugfix action_on_cellexit

parent f2a5dae7
No related branches found
No related tags found
No related merge requests found
......@@ -342,6 +342,7 @@ class RailEnv(Environment):
if agent.malfunction_data['malfunction'] < 2:
agent.malfunction_data['malfunction'] -= 1
self.agents[i_agent].moving = True
action_dict[i_agent] = RailEnvActions.DO_NOTHING
else:
agent.malfunction_data['malfunction'] -= 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment