1
This commit is contained in:
parent
17443b9bcf
commit
499f4bf883
@ -54,6 +54,12 @@ static void InternalCreateBullet(BulletInfo& bullet_info)
|
|||||||
bullet_info.bullet_dir,
|
bullet_info.bullet_dir,
|
||||||
bullet_info.fly_distance,
|
bullet_info.fly_distance,
|
||||||
bullet_info.is_tank_skin);
|
bullet_info.is_tank_skin);
|
||||||
|
#ifdef DEBUG
|
||||||
|
if (bullet_info.c.Get()->IsPlayer()) {
|
||||||
|
bullet_info.c.Get()->SendDebugMsg(a8::Format("CreateBullet id:%d",
|
||||||
|
{bullet_info.bullet_meta->i->id()}));
|
||||||
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
bullet_uniid = bullet_uniid ? bullet_uniid : c->room->AllocUniid();
|
bullet_uniid = bullet_uniid ? bullet_uniid : c->room->AllocUniid();
|
||||||
c->room->frame_event.AddBullet
|
c->room->frame_event.AddBullet
|
||||||
@ -1825,6 +1831,8 @@ void Creature::CheckSpecObject()
|
|||||||
switch (collider->owner->GetEntityType()) {
|
switch (collider->owner->GetEntityType()) {
|
||||||
case ET_Obstacle:
|
case ET_Obstacle:
|
||||||
case ET_Building:
|
case ET_Building:
|
||||||
|
case ET_Dummy:
|
||||||
|
case ET_MapBlock:
|
||||||
{
|
{
|
||||||
if (TestCollision(room, (ColliderComponent*)collider)) {
|
if (TestCollision(room, (ColliderComponent*)collider)) {
|
||||||
cell_flags_ |= collider->tag;
|
cell_flags_ |= collider->tag;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user