Call Weapon::GetZoom() instead

This commit is contained in:
smallmodel 2023-08-11 23:54:43 +02:00
parent 34535ad415
commit ddac42e21e
No known key found for this signature in database
GPG key ID: A96F163ED4891440

View file

@ -1807,7 +1807,7 @@ void Player::Obituary(Entity *attacker, Entity *inflictor, int meansofdeath, int
if (pAttackerWeap->GetWeaponClass() & WEAPON_CLASS_PISTOL) {
s1 = "was gunned down by";
} else if (pAttackerWeap->GetWeaponClass() & WEAPON_CLASS_RIFLE) {
if (pAttackerWeap->m_iZoom) {
if (pAttackerWeap->GetZoom()) {
s1 = "was sniped by";
} else {
s1 = "was rifled by";