移除room无用代码
This commit is contained in:
parent
7322b038fa
commit
1ceb71aaeb
@ -547,22 +547,6 @@ void Room::RemoveObjectLater(RoomEntity* entity)
|
||||
|
||||
void Room::OnHumanDie(Human* hum)
|
||||
{
|
||||
#if 0
|
||||
if (hum->skill_meta && hum->skill_meta->i->type() == ST_SelfDetonate) {
|
||||
for (auto& pair : human_hash_) {
|
||||
if (pair.second != hum && (pair.second->team_id == 0 || pair.second->team_id != hum->team_id)) {
|
||||
float distance = (hum->pos - pair.second->pos).Norm();
|
||||
if (distance <= hum->skill_meta->area) {
|
||||
pair.second->DecHP(hum->skill_meta->value1,
|
||||
hum->entity_uniid,
|
||||
hum->name,
|
||||
VW_SelfDetonate);
|
||||
}
|
||||
}
|
||||
}
|
||||
frame_event.AddExplosionEx(hum, 0, hum->pos, 1);
|
||||
}
|
||||
#endif
|
||||
--alive_count_;
|
||||
--App::Instance()->perf.alive_count;
|
||||
NotifyUiUpdate();
|
||||
|
Loading…
x
Reference in New Issue
Block a user