1
This commit is contained in:
parent
aa957e59b1
commit
1cbf872a98
@ -199,17 +199,17 @@ static void InternalCreateBullet(BulletInfo& bullet_info)
|
|||||||
bullet_info.shot_animi_time += bullet_info.delay_time;
|
bullet_info.shot_animi_time += bullet_info.delay_time;
|
||||||
bullet_info.delay_time = 0;
|
bullet_info.delay_time = 0;
|
||||||
}
|
}
|
||||||
if (bullet_info.delay_time <= 0) {
|
|
||||||
#ifdef MYDEBUG
|
#ifdef MYDEBUG
|
||||||
if (c->IsPlayer()) {
|
if (c->IsPlayer()) {
|
||||||
a8::XPrintf("create bullet %d %d frameno:%d\n",
|
a8::XPrintf("create bullet %d %d frameno:%d\n",
|
||||||
{
|
{
|
||||||
bullet_info.bullet_idx,
|
bullet_info.bullet_idx,
|
||||||
bullet_info.delay_time,
|
bullet_info.delay_time,
|
||||||
c->room->GetFrameNo()
|
c->room->GetFrameNo()
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
if (bullet_info.delay_time <= 0) {
|
||||||
if (c->GetCurrWeapon()->meta->bullet_consume_type() == kBulletConsumeMulti) {
|
if (c->GetCurrWeapon()->meta->bullet_consume_type() == kBulletConsumeMulti) {
|
||||||
if (c->GetCurrWeapon()->ammo <= 0) {
|
if (c->GetCurrWeapon()->ammo <= 0) {
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user