From a86daf75cedc04aacc4949152e544b07e1e7575e Mon Sep 17 00:00:00 2001 From: TurnMeOn Date: Mon, 25 Dec 2017 16:31:16 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=82=E3=80=82=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- car.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/car.cpp b/car.cpp index 8ba105d..5362a1f 100644 --- a/car.cpp +++ b/car.cpp @@ -101,7 +101,7 @@ void Car::setPath(Path *path) m_target = path->getNext(); m_current = m_target; m_target.action = Road::none; - this->setPos(m_target.point - QPoint(20, 30)); + this->setPos(m_target.point - 0.5*QPoint(M_WID, M_LEN)); this->setRotation(m_target.dir+90); }