添加自动装弹逻辑

This commit is contained in:
aozhiwei 2019-04-12 14:57:25 +08:00
parent 706f2fa8c3
commit b3da54c99c

View File

@ -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;
} }