This commit is contained in:
aozhiwei 2023-04-02 11:05:11 +08:00
parent a2e93d8e93
commit 0ecdf81690
2 changed files with 3 additions and 1 deletions

View File

@ -93,7 +93,7 @@ void Bullet::Initialize()
void Bullet::Update(int delta_time) void Bullet::Update(int delta_time)
{ {
if (shot_animi_time <= (room->GetFrameNo() - create_frameno_) * FRAME_RATE_MS) { if (shot_animi_time <= (room->GetFrameNo() - create_frameno_) * FRAME_RATE_MS) {
if (!trace_target_id) { if (!trace_target_id && !reporter_list) {
MapServiceUpdate(); MapServiceUpdate();
++updated_times_; ++updated_times_;
} }

View File

@ -31,6 +31,8 @@ class Bullet : public MoveableEntity, public IBullet
int hand = 0; int hand = 0;
a8::XTimerWp keep_shot_animi_timer_ptr; a8::XTimerWp keep_shot_animi_timer_ptr;
float shot_animi_time = 0.0f; float shot_animi_time = 0.0f;
std::shared_ptr<std::set<int>> reporter_list;
virtual ~Bullet() override; virtual ~Bullet() override;
virtual void Initialize() override; virtual void Initialize() override;