This commit is contained in:
aozhiwei 2021-04-29 16:02:32 +08:00
parent e4832413cc
commit 48d197413b

View File

@ -192,6 +192,9 @@ void Player::UpdateShot()
a8::Vec2 target_dir = attack_dir;
GetCar()->attack_dir = attack_dir;
GetCar()->Shot(target_dir, shot_ok, fly_distance);
if (!moving) {
GetCar()->SetMoveDir(attack_dir);
}
shot_start = false;
return;
} else {