From 9977df32c9b017cc3f66aad8c98a194e9ad38b4d Mon Sep 17 00:00:00 2001 From: p57492168 <2577192526@qq.com> Date: Sun, 3 Jul 2022 12:37:25 +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 b91634a..f686daf 100644 --- a/Palette/env/engine.py +++ b/Palette/env/engine.py @@ -266,11 +266,11 @@ class SeaEnvEngine(object): 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: + 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 - elif action == LEFT: # left + elif action == LEFT: self._ship_charging[ship_id] = False self._ship_charging_time_left[ship_id] = 0 self.ship_body[ship_id].angle = np.pi