This commit is contained in:
aozhiwei 2023-01-05 15:43:12 +08:00
parent 5393bff81e
commit d005c201c9
2 changed files with 1 additions and 3 deletions

View File

@ -919,7 +919,6 @@ void Bullet::ProcNormalBullet(BulletCheckResult& result)
sender.Get()->TryAddBuff(sender.Get(), gun_meta->_int_param2); sender.Get()->TryAddBuff(sender.Get(), gun_meta->_int_param2);
} }
} else { } else {
#if 0
sender.Get()->IncDisableMoveTimes(); sender.Get()->IncDisableMoveTimes();
sender.Get()->IncDisableAttackDirTimes(); sender.Get()->IncDisableAttackDirTimes();
auto sender_p = sender; auto sender_p = sender;
@ -948,7 +947,6 @@ void Bullet::ProcNormalBullet(BulletCheckResult& result)
&sender.Get()->xtimer_attacher &sender.Get()->xtimer_attacher
); );
sender.Get()->TryAddBuff(sender.Get(), gun_meta->_int_param2); sender.Get()->TryAddBuff(sender.Get(), gun_meta->_int_param2);
#endif
} }
} }
} }

View File

@ -601,7 +601,7 @@ int Room::CreateBullet(Creature* sender,
bullet->keep_shot_animi_timer_ptr = keep_shot_animi_timer_ptr; bullet->keep_shot_animi_timer_ptr = keep_shot_animi_timer_ptr;
bullet->shot_animi_time = shot_animi_time; bullet->shot_animi_time = shot_animi_time;
bullet->Initialize(); bullet->Initialize();
#ifdef DEBUG #ifdef DEBUG1
a8::XPrintf("xxxxxxx born_pos:%f,%f,%f curr_pos:%f,%f,%f\n", a8::XPrintf("xxxxxxx born_pos:%f,%f,%f curr_pos:%f,%f,%f\n",
{ {
bullet->born_pos.x, bullet->born_pos.x,