From a41ce5d9ac7e64f3de3e0381cca65f97cf29aa74 Mon Sep 17 00:00:00 2001 From: p57492168 <2577192526@qq.com> Date: Mon, 4 Jul 2022 14:12:54 +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 f686daf..67d2757 100644 --- a/Palette/env/engine.py +++ b/Palette/env/engine.py @@ -270,11 +270,11 @@ class SeaEnvEngine(object): 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: + 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 - elif action == RIGHT: # right + elif action == RIGHT: self._ship_charging[ship_id] = False self._ship_charging_time_left[ship_id] = 0 self.ship_body[ship_id].angle = 0.0