mirror of
https://github.com/Cherry/3D2D-Textscreens.git
synced 2025-03-04 03:13:15 -05:00
fix: only render as rainbow when explicitly defined
This commit is contained in:
parent
13114721d9
commit
1cf2eda994
@ -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.0"
|
||||
local version = "1.17.1"
|
||||
|
||||
local function GetOS()
|
||||
if system.IsLinux() then return "linux" end
|
||||
|
@ -75,7 +75,7 @@ local function Draw3D2D(ang, pos, camangle, data)
|
||||
-- Position
|
||||
surface.SetTextPos(data[i][POSX], data[i][POSY])
|
||||
-- Rainbow
|
||||
if data[i][RAINBOW] ~= 0 then
|
||||
if data[i][RAINBOW] ~= nil and DATA[i][RAINBOW] ~= 0 then
|
||||
for j = 1, #data[i][TEXT] do
|
||||
--Color
|
||||
if render_rainbow ~= 0 then
|
||||
|
Loading…
Reference in New Issue
Block a user