Skip to content
Permalink
Browse files

game: fix losing desguise on firing silenced weapon

  • Loading branch information...
Aranud committed Jul 5, 2019
1 parent 6795aa0 commit 3d89a7879dbc8c5d2232b96e5e712cb96e12dba6
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/game/g_weapon.c
@@ -4145,9 +4145,9 @@ void FireWeapon(gentity_t *ent)
{
if (!(GetWeaponTableData(ent->s.weapon)->attributes & WEAPON_ATTRIBUT_NEVER_LOST_DESGUISE))
{
if (!(GetWeaponTableData(ent->s.weapon)->attributes & WEAPON_ATTRIBUT_KEEP_DESGUISE)
|| (ent->client->pmext.silencedSideArm & 1) // silencer put on
|| G_PlayerCanBeSeenByOthers(ent))
if ((!(GetWeaponTableData(ent->s.weapon)->attributes & WEAPON_ATTRIBUT_KEEP_DESGUISE)
&& !(ent->client->pmext.silencedSideArm & 1)) // silencer put on
|| G_PlayerCanBeSeenByOthers(ent))
{
ent->client->ps.powerups[PW_OPS_DISGUISED] = 0;
ent->client->disguiseClientNum = -1;

0 comments on commit 3d89a78

Please sign in to comment.
You can’t perform that action at this time.