Simplify boss invulnerability lookup
This commit is contained in:
parent
7c436f1fbb
commit
7e263323bc
|
@ -1557,7 +1557,9 @@ static int do_boss_weapon_collision(const vobjptr_t robot, const vobjptr_t weapo
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if ((Weapon_info[get_weapon_id(weapon)].matter && Boss_invulnerable_matter[d2_boss_index]) || (!Weapon_info[get_weapon_id(weapon)].matter && Boss_invulnerable_energy[d2_boss_index])) {
|
}
|
||||||
|
else if ((Weapon_info[get_weapon_id(weapon)].matter ? Boss_invulnerable_matter : Boss_invulnerable_energy)[d2_boss_index])
|
||||||
|
{
|
||||||
auto segnum = find_point_seg(collision_point, robot->segnum);
|
auto segnum = find_point_seg(collision_point, robot->segnum);
|
||||||
digi_link_sound_to_pos( SOUND_WEAPON_HIT_DOOR, segnum, 0, collision_point, 0, F1_0);
|
digi_link_sound_to_pos( SOUND_WEAPON_HIT_DOOR, segnum, 0, collision_point, 0, F1_0);
|
||||||
damage_flag = 0;
|
damage_flag = 0;
|
||||||
|
|
Loading…
Reference in a new issue