修复c4问题-room
This commit is contained in:
parent
186aa4acfb
commit
71466b4f9b
@ -568,16 +568,17 @@ int Room::CreateLootEx(int equip_id, a8::Vec2 born_pos, a8::Vec2 pos, int count,
|
||||
}
|
||||
}
|
||||
|
||||
void Room::CreateBullet(Creature* sender,
|
||||
Creature* passenger,
|
||||
MetaData::Equip* weapon_meta,
|
||||
MetaData::EquipUpgrade* weapon_upgrade_meta,
|
||||
MetaData::Equip* bullet_meta,
|
||||
a8::Vec2 pos,
|
||||
a8::Vec2 dir,
|
||||
float fly_distance,
|
||||
bool is_tank_skin)
|
||||
int Room::CreateBullet(Creature* sender,
|
||||
Creature* passenger,
|
||||
MetaData::Equip* weapon_meta,
|
||||
MetaData::EquipUpgrade* weapon_upgrade_meta,
|
||||
MetaData::Equip* bullet_meta,
|
||||
a8::Vec2 pos,
|
||||
a8::Vec2 dir,
|
||||
float fly_distance,
|
||||
bool is_tank_skin)
|
||||
{
|
||||
int bullet_uniid = 0;
|
||||
if (grid_service->CanAdd(pos.x, pos.y)) {
|
||||
Bullet* bullet = EntityFactory::Instance()->MakeBullet(AllocUniid());
|
||||
bullet->sender.Attach(sender);
|
||||
@ -597,7 +598,9 @@ void Room::CreateBullet(Creature* sender,
|
||||
bullet->Initialize();
|
||||
AddObjectLater(bullet);
|
||||
grid_service->AddBullet(bullet);
|
||||
bullet_uniid = bullet->GetUniId();
|
||||
}
|
||||
return bullet_uniid;
|
||||
}
|
||||
|
||||
Car* Room::CreateCar(Human* driver,
|
||||
|
@ -112,15 +112,15 @@ public:
|
||||
|
||||
int CreateLoot(int equip_id, a8::Vec2 pos, int count, int equip_lv);
|
||||
int CreateLootEx(int equip_id, a8::Vec2 born_pos, a8::Vec2 pos, int count, int equip_lv, bool show_anim);
|
||||
void CreateBullet(Creature* sender,
|
||||
Creature* passenger,
|
||||
MetaData::Equip* weapon_meta,
|
||||
MetaData::EquipUpgrade* weapon_upgrade_meta,
|
||||
MetaData::Equip* bullet_meta,
|
||||
a8::Vec2 pos,
|
||||
a8::Vec2 dir,
|
||||
float fly_distance,
|
||||
bool is_tank_skin = false);
|
||||
int CreateBullet(Creature* sender,
|
||||
Creature* passenger,
|
||||
MetaData::Equip* weapon_meta,
|
||||
MetaData::EquipUpgrade* weapon_upgrade_meta,
|
||||
MetaData::Equip* bullet_meta,
|
||||
a8::Vec2 pos,
|
||||
a8::Vec2 dir,
|
||||
float fly_distance,
|
||||
bool is_tank_skin = false);
|
||||
Car* CreateCar(Human* driver,
|
||||
int car_uniid,
|
||||
MetaData::Equip* meta,
|
||||
|
Loading…
x
Reference in New Issue
Block a user