From f0db718c54fa1a0877f2f6d9422c88d7de98c54e Mon Sep 17 00:00:00 2001 From: joylink_fanyuhong <18706759286@163.com> Date: Mon, 13 May 2024 10:32:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=97=E8=BD=A6=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/graphics/train/Train.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/graphics/train/Train.ts b/src/graphics/train/Train.ts index fd6b88c..ac477db 100644 --- a/src/graphics/train/Train.ts +++ b/src/graphics/train/Train.ts @@ -569,9 +569,9 @@ export class Train extends JlGraphic { const portP = points[points.length - 1]; if (portP.x === 0) { if (this.states.driftTo) { - this.arrowIsLeft = 0 < portP.y; - } else { this.arrowIsLeft = 0 > portP.y; + } else { + this.arrowIsLeft = 0 < portP.y; } } else { if (this.states.driftTo) {