Fixed: Ghost stuck in the ground on multiplayer x32-x64 Chromium branch

Updated: Button controlled sliders
This commit is contained in:
Deyan Dobromirov 2020-05-21 21:25:34 +03:00
parent 9622af7eb7
commit 366720ae6e
2 changed files with 3 additions and 3 deletions

View File

@ -75,7 +75,7 @@ local gtInitLogs = {"*Init", false, 0}
------ CONFIGURE ASMLIB ------
asmlib.InitBase("track","assembly")
asmlib.SetOpVar("TOOL_VERSION","7.605")
asmlib.SetOpVar("TOOL_VERSION","7.606")
asmlib.SetIndexes("V" , "x", "y", "z")
asmlib.SetIndexes("A" ,"pitch","yaw","roll")
asmlib.SetIndexes("WV",1,2,3)

View File

@ -1483,7 +1483,6 @@ function SetButtonSlider(cPanel,sVar,sTyp,nMin,nMax,nDec,tBtn)
local sTag = "tool."..GetOpVar("TOOLNAME_NL").."."..sVar
pPanel:SetParent(cPanel)
cPanel:InvalidateLayout()
pPanel:InvalidateChildren()
pPanel:SetSize(sX, sY)
if(IsTable(tBtn) and tBtn[1]) then
local sPtn = GetOpVar("FORM_LOGBTNSLD")
@ -1524,7 +1523,7 @@ function SetButtonSlider(cPanel,sVar,sTyp,nMin,nMax,nDec,tBtn)
pPanel:InvalidateChildren()
pPanel:SizeToContents()
pPanel:SizeToChildren(true, false)
cPanel:AddItem(pPanel)
cPanel:AddPanel(pPanel)
return pPanel
end
@ -4200,6 +4199,7 @@ local function MakeEntityGhost(sModel, vPos, aAng)
eGho:SetAngles(aAng or GetOpVar("ANG_ZERO"))
eGho:Spawn()
eGho:SetSolid(SOLID_NONE)
eGho:SetCollisionGroup(COLLISION_GROUP_NONE)
eGho:SetMoveType(MOVETYPE_NONE)
eGho:SetNotSolid(true)
eGho:SetNoDraw(true)