From e4832413cc6784963e5de64079833c75f7555b1a Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Thu, 29 Apr 2021 15:43:53 +0800 Subject: [PATCH] 1 --- server/gameserver/player.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/server/gameserver/player.cc b/server/gameserver/player.cc index 92f5ff9..e502c2d 100644 --- a/server/gameserver/player.cc +++ b/server/gameserver/player.cc @@ -190,6 +190,7 @@ void Player::UpdateShot() if (GetCar() && GetCar()->IsDriver(this)) { bool shot_ok = false; a8::Vec2 target_dir = attack_dir; + GetCar()->attack_dir = attack_dir; GetCar()->Shot(target_dir, shot_ok, fly_distance); shot_start = false; return;