添加自动装弹逻辑
This commit is contained in:
parent
706f2fa8c3
commit
b3da54c99c
@ -394,6 +394,10 @@ void Player::Shot()
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
if (curr_weapon->weapon_idx != 0 &&
|
||||||
|
curr_weapon->ammo <= 0) {
|
||||||
|
AutoLoadingBullet();
|
||||||
|
}
|
||||||
last_shot_frameno_ = room->frame_no;
|
last_shot_frameno_ = room->frame_no;
|
||||||
need_sync_active_player = true;
|
need_sync_active_player = true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user