diff --git a/CHANGELOG.md b/CHANGELOG.md index 892a20654..81c2b59f8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,7 @@ All notable changes to TTT2 will be documented here. Inspired by [keep a changel - Fixed client error for a not fully initialized client (by @Histalek) - Fixed the targetID corpse hint not respecting `ttt_identify_body_woconfirm` (by @Histalek) - Fixed the beacon not being properly translated when placed (by @Histalek) +- Fixed binoculars zooming not being predicted (by @Histalek) ### Changed diff --git a/gamemodes/terrortown/entities/weapons/weapon_ttt_binoculars.lua b/gamemodes/terrortown/entities/weapons/weapon_ttt_binoculars.lua index ce64e9588..1ebee8c44 100644 --- a/gamemodes/terrortown/entities/weapons/weapon_ttt_binoculars.lua +++ b/gamemodes/terrortown/entities/weapons/weapon_ttt_binoculars.lua @@ -115,15 +115,12 @@ end --- -- @ignore function SWEP:SetZoomLevel(level) - if CLIENT then - return - end - - local owner = self:GetOwner() - self:SetZoomAmount(level) - owner:SetFOV(self.ZoomLevels[level], 0.3) + local owner = self:GetOwner() + if IsValid(owner) then + owner:SetFOV(self.ZoomLevels[level], 0.3) + end end ---