Fix bug with changes to ulx_showmotd cvar not updating correctly in XGUI.

This commit is contained in:
SticklyMan 2015-05-31 10:33:23 -06:00
parent eadbb06196
commit 6cccbbf29a

View File

@ -439,7 +439,7 @@ function plist.motdURLText:UpdateConvarValue()
end
function plist.motdURLText:OnEnter() self:UpdateConvarValue() end
function plist.ConVarUpdated( sv_cvar, cl_cvar, ply, old_val, new_val )
if cl_cvar == "ulx_showmotd" then
if cl_cvar == "ulx_showMotd" then
if tonumber( new_val ) == nil then --MOTD is enabled and set to a URL
plist.motdEnabled:SetValue( 1 )
plist.motdURLEnabled:SetValue( 1 )