炸弹不区分敌我
This commit is contained in:
parent
610847d241
commit
b046afe4b7
@ -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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user