This commit is contained in:
aozhiwei 2022-08-13 06:52:07 +08:00
parent 70422aea17
commit a5158fedff
2 changed files with 5 additions and 0 deletions

View File

@ -448,6 +448,10 @@ void Bullet::Check(float distance)
hit_objects_.insert(collider->owner->GetUniId());
}
}
} else if (obstacle->meta->i->thing_type() == kObstacleStrengthenWall) {
if (!strengthened_ && TestCollision(room, collider)) {
strengthened_ = true;
}
}
}
}

View File

@ -75,6 +75,7 @@ private:
bool is_curr_weapon = false;
std::set<int> hit_objects_;
long long create_frameno_ = 0;
bool strengthened_ = false;
friend class EntityFactory;
};