1
This commit is contained in:
parent
6fa87b3c70
commit
cdd5389b30
@ -805,9 +805,14 @@ void Bullet::GetHitThings(BulletCheckResult& result)
|
|||||||
room->grid_service->TraverseObstacles
|
room->grid_service->TraverseObstacles
|
||||||
(room->GetRoomIdx(),
|
(room->GetRoomIdx(),
|
||||||
GetGridList(),
|
GetGridList(),
|
||||||
[this] (Obstacle* ob, bool& stop)
|
[this, result] (Obstacle* ob, bool& stop) mutable
|
||||||
{
|
{
|
||||||
#if 1
|
#if 1
|
||||||
|
if (!ob->CanThroughable(this) && !ob->IsDead(room)) {
|
||||||
|
if (Collision::CheckBullet(this, ob)) {
|
||||||
|
result.objects.insert(ob);
|
||||||
|
}
|
||||||
|
}
|
||||||
#else
|
#else
|
||||||
if (ob->meta->thing_type() == kObstacleStrengthenWall) {
|
if (ob->meta->thing_type() == kObstacleStrengthenWall) {
|
||||||
if (!strengthened_ && sender.Get() &&
|
if (!strengthened_ && sender.Get() &&
|
||||||
|
@ -3492,7 +3492,6 @@ void Room::CreateWorldObjects()
|
|||||||
break;
|
break;
|
||||||
case WorldObjectType_e::kCarType:
|
case WorldObjectType_e::kCarType:
|
||||||
{
|
{
|
||||||
#if 1
|
|
||||||
const mt::Equip* equip_meta = mt::Equip::GetById(obj->object_id);
|
const mt::Equip* equip_meta = mt::Equip::GetById(obj->object_id);
|
||||||
if (equip_meta) {
|
if (equip_meta) {
|
||||||
int car_uniid = AllocUniid();
|
int car_uniid = AllocUniid();
|
||||||
@ -3509,7 +3508,6 @@ void Room::CreateWorldObjects()
|
|||||||
car_hash_[c->GetUniId()] = car;
|
car_hash_[c->GetUniId()] = car;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case WorldObjectType_e::kBornPointType:
|
case WorldObjectType_e::kBornPointType:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user