1
This commit is contained in:
parent
40ad332a7e
commit
544e5b6e67
@ -199,6 +199,7 @@ enum GunSubEquipType_e
|
||||
GUN_SUB_EQUIP_TYPE_THREE_GUN = 9,
|
||||
GUN_SUB_EQUIP_TYPE_LASER_CANNON = 10,
|
||||
GUN_SUB_EQUIP_TYPE_FLY_HOOk = 14,
|
||||
GUN_SUB_EQUIP_TYPE_FLY_LASER = 15,
|
||||
GUN_SUB_EQUIP_TYPE_End
|
||||
};
|
||||
|
||||
|
@ -125,18 +125,28 @@ void FrameEvent::AddBullet(int bullet_uniid,
|
||||
}
|
||||
{
|
||||
int bullet_idx = room->frame_event_data->bullets_.size() - 1;
|
||||
sender.Get()->TraverseAllLayerHumanList
|
||||
(
|
||||
[bullet_idx, &sender] (Human* hum, bool& stop)
|
||||
{
|
||||
if (weapon_meta->equip_subtype() == GUN_SUB_EQUIP_TYPE_FLY_LASER) {
|
||||
sender.Get()->room->TraverseHumanList
|
||||
(
|
||||
[bullet_idx] (Human* hum) -> bool
|
||||
{
|
||||
hum->GetFrameData().bullets_.push_back(bullet_idx);
|
||||
return true;
|
||||
});
|
||||
} else {
|
||||
sender.Get()->TraverseAllLayerHumanList
|
||||
(
|
||||
[bullet_idx, &sender] (Human* hum, bool& stop)
|
||||
{
|
||||
#ifdef MYDEBUG1
|
||||
// 999
|
||||
if (!hum->InPartObjects(sender.Get())) {
|
||||
A8_ABORT();
|
||||
}
|
||||
// 999
|
||||
if (!hum->InPartObjects(sender.Get())) {
|
||||
A8_ABORT();
|
||||
}
|
||||
#endif
|
||||
hum->GetFrameData().bullets_.push_back(bullet_idx);
|
||||
});
|
||||
hum->GetFrameData().bullets_.push_back(bullet_idx);
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user