修复死亡后开枪问题

This commit is contained in:
aozhiwei 2019-05-20 11:53:09 +08:00
parent b48d41c1ce
commit 0a74273831

View File

@ -100,7 +100,7 @@ void Player::UpdateMove()
if (action_type == AT_Relive) {
CancelAction();
}
if (a8::HasBitFlag(status, HS_Fly)) {
if (dead || a8::HasBitFlag(status, HS_Fly)) {
moving = false;
moved_frames = 0;
last_collision_door = nullptr;
@ -139,7 +139,8 @@ void Player::UpdateMove()
void Player::UpdateShot()
{
if (a8::HasBitFlag(status, HS_Fly) ||
if (dead ||
a8::HasBitFlag(status, HS_Fly) ||
a8::HasBitFlag(status, HS_Jump) ) {
shot_start = false;
shot_hold = false;