1
This commit is contained in:
parent
67af9c6066
commit
2e6702ebd3
@ -1962,6 +1962,17 @@ Hero* Creature::InternalSummonHero(Buff* buff, const mt::Hero* hero_meta, glm::v
|
||||
dir,
|
||||
team_id
|
||||
);
|
||||
if (hero) {
|
||||
auto itr = slave_heros_.find(hero_meta->id());
|
||||
if (itr != slave_heros_.end()) {
|
||||
list_add_tail(&hero->entry, &itr->second);
|
||||
} else {
|
||||
slave_heros_[hero_meta->id()] = list_head();
|
||||
itr = slave_heros_.find(hero_meta->id());
|
||||
INIT_LIST_HEAD(&itr->second);
|
||||
list_add_tail(&hero->entry, &itr->second);
|
||||
}
|
||||
}
|
||||
return hero;
|
||||
}
|
||||
|
||||
|
@ -115,7 +115,8 @@ void FrameEvent::AddBullet(int bullet_uniid,
|
||||
(
|
||||
[bullet_idx, &sender] (Human* hum, bool& stop)
|
||||
{
|
||||
#ifdef DEBUG
|
||||
#ifdef DEBUG1
|
||||
// 999
|
||||
if (!hum->InPartObjects(sender.Get())) {
|
||||
A8_ABORT();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user