修复倒下后吃药问题

This commit is contained in:
aozhiwei 2020-03-13 19:22:38 +08:00
parent 65aed29643
commit d2516076b6

View File

@ -204,6 +204,9 @@ void Player::UpdateCancelAction()
void Player::UpdateUseItemIdx() void Player::UpdateUseItemIdx()
{ {
if (downed) {
return;
}
if (use_item_idx >= 0 && use_item_idx < IS_END) { if (use_item_idx >= 0 && use_item_idx < IS_END) {
switch (use_item_idx) { switch (use_item_idx) {
case IS_HEALTHKIT: case IS_HEALTHKIT: