mirror of
https://github.com/Cherry/3D2D-Textscreens.git
synced 2025-03-04 03:13:15 -05:00
fix: default rainbow to 0 in AddDrawingInfo
This commit is contained in:
parent
1cf2eda994
commit
fadf79f5dc
@ -18,7 +18,7 @@ if SERVER then
|
||||
CreateConVar("sbox_maxtextscreens", "1", {FCVAR_NOTIFY, FCVAR_REPLICATED})
|
||||
CreateConVar("ss_call_to_home", 0, {FCVAR_NOTIFY, FCVAR_REPLICATED})
|
||||
|
||||
local version = "1.17.1"
|
||||
local version = "1.17.2"
|
||||
|
||||
local function GetOS()
|
||||
if system.IsLinux() then return "linux" end
|
||||
|
@ -164,7 +164,7 @@ local function AddDrawingInfo(ent, rawData)
|
||||
-- Remove text if text is empty so we don't waste performance
|
||||
if string.len(drawData[i][TEXT]) == 0 or string.len(string.Replace( drawData[i][TEXT], " ", "" )) == 0 then drawData[i][TEXT] = nil end
|
||||
--Rainbow
|
||||
drawData[i][RAINBOW] = rawData[i]["rainbow"]
|
||||
drawData[i][RAINBOW] = rawData[i]["rainbow"] or 0
|
||||
end
|
||||
|
||||
-- Sort out heights
|
||||
|
Loading…
Reference in New Issue
Block a user