Skip to content

Commit

Permalink
players.inventories: Shorten the silencer option condition for CS:GO
Browse files Browse the repository at this point in the history
Signed-off-by: BackRaw <[email protected]>
  • Loading branch information
BackRaw committed Oct 19, 2018
1 parent b4b08bb commit 86b6175
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions addons/source-python/plugins/udm/players/inventories.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ def set_basename(self, value):
self._basename = value

# Set the silencer option to True if the game is CS:GO, else False
if self.data.has_silencer:
self.silencer_option = GAME_NAME == 'csgo'
self.silencer_option = self.data.has_silencer and GAME_NAME == 'csgo'

def get_basename(self):
"""Return the basename."""
Expand Down

0 comments on commit 86b6175

Please sign in to comment.