diff --git a/lua/entities/gmod_subway_base/shared.lua b/lua/entities/gmod_subway_base/shared.lua index 79f85bf..8ba8a4c 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.floor(value*500) then return end - self:SetNW2Int(idx,math.floor(value*500)) + 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)) end function ENT:GetPackedRatio(idx) - return self:GetNW2Int(idx)/500 + return self:GetNW2Int(idx)/1000 end --------------------------------------------------------------------------------