This commit is contained in:
aozhiwei 2021-05-25 10:16:44 +08:00
parent 29c46c5e27
commit b1027359e0

View File

@ -198,7 +198,7 @@ void Player::UpdateShot()
GetCar()->shoot_offset = shoot_offset; GetCar()->shoot_offset = shoot_offset;
GetCar()->SetAttackDir(GetAttackDir()); GetCar()->SetAttackDir(GetAttackDir());
GetCar()->Shot(target_dir, shot_ok, fly_distance); GetCar()->Shot(target_dir, shot_ok, fly_distance);
if (!moving) { if (!moving && GetCar()->IsDriver(this)) {
GetCar()->SetMoveDir(GetAttackDir()); GetCar()->SetMoveDir(GetAttackDir());
} }
GetCar()->shoot_offset = old_car_shoot_offset; GetCar()->shoot_offset = old_car_shoot_offset;