diff --git a/lua/entities/gmod_subway_base/shared.lua b/lua/entities/gmod_subway_base/shared.lua index 8ba8a4c..4888aff 100644 --- a/lua/entities/gmod_subway_base/shared.lua +++ b/lua/entities/gmod_subway_base/shared.lua @@ -589,12 +589,12 @@ end --------------------------------------------------------------------------------------- function ENT:SetPackedRatio(idx,value) --local idx = type(idx) == "number" and 999-idx or idx - if self._NetData[2][idx] ~= nil and self._NetData[2][idx] == math.Round(value*1000) then return end - self:SetNW2Int(idx,math.Round(value*1000)) + if self._NetData[2][idx] ~= nil and self._NetData[2][idx] == math.floor(value*1000+0.5) then return end + self:SetNW2Int(idx,math.floor(value*1000+0.5)) end function ENT:GetPackedRatio(idx) - return self:GetNW2Int(idx)/1000 + return self:GetNW2Int(idx)*0.001 end --------------------------------------------------------------------------------