Enable toggling simulation states debug draw

This commit is contained in:
2020-06-16 19:38:26 -05:00
parent 0425d5db04
commit fa5aeb15d7
2 changed files with 7 additions and 2 deletions

View File

@@ -23,7 +23,7 @@ module TAC
self.send(:"draw_field_#{@season}")
@simulation.robots.each(&:draw)
@simulation.robots.each { |robot| robot.queue.first.draw if robot.queue.first }
@simulation.robots.each { |robot| robot.queue.first.draw if robot.queue.first && @simulation.show_paths }
end
end
end