This commit is contained in:
aozhiwei 2021-04-29 15:43:53 +08:00
parent bc1ffaa472
commit e4832413cc

View File

@ -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;