Skip to content
Snippets Groups Projects
Commit 3a9e66a3 authored by Erik Nygren's avatar Erik Nygren :bullettrain_front:
Browse files

resetting fixed function

parent e49ec961
No related branches found
No related tags found
No related merge requests found
......@@ -413,6 +413,7 @@ class RailEnv(Environment):
if 'moving_before_malfunction' in agent.malfunction_data:
self.agents[i_agent].moving = agent.malfunction_data['moving_before_malfunction']
return False
# Agent has been running smoothly
elif agent.malfunction_data['malfunction'] < 1 and agent.malfunction_data['next_malfunction'] > 0:
agent.malfunction_data['next_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