炸弹不区分敌我

This commit is contained in:
aozhiwei 2020-03-25 15:20:39 +08:00
parent 610847d241
commit b046afe4b7

View File

@ -52,7 +52,7 @@ void Bullet::OnHit(std::set<Entity*>& objects)
}
Human* hum = (Human*)target;
#if 1
if (!hum->dead && player->team_id != hum->team_id) {
if (!hum->dead && (IsBomb() || player->team_id != hum->team_id)) {
#else
if (hum != player && !hum->dead &&
(hum->team_id == 0 || player->team_id != hum->team_id)) {