From 3e24e286f244aa5c85f8466eb7835d2ae31d6f6a Mon Sep 17 00:00:00 2001 From: p57492168 <2577192526@qq.com> Date: Sun, 3 Jul 2022 12:36:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Palette/env/engine.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Palette/env/engine.py b/Palette/env/engine.py index ba9ffa7..b91634a 100644 --- a/Palette/env/engine.py +++ b/Palette/env/engine.py @@ -262,11 +262,11 @@ class SeaEnvEngine(object): raise AssertionError("Cannot continue running after crash!") for ship_id, action in enumerate(actions): - if action == UP: + if action == UP: self._ship_charging[ship_id] = False self._ship_charging_time_left[ship_id] = 0 self.ship_body[ship_id].angle = 1.5*np.pi - elif action == DOWN: # down + elif action == DOWN: self._ship_charging[ship_id] = False self._ship_charging_time_left[ship_id] = 0 self.ship_body[ship_id].angle = 0.5*np.pi