From b1b158baab466e83cc9b1044b964bce82286a0e5 Mon Sep 17 00:00:00 2001 From: Deyan Dobromirov Date: Sun, 24 Jan 2016 20:00:23 +0200 Subject: [PATCH] Fixed: GetCorePoint server side --- lua/autorun/trackassembly_init.lua | 2 +- lua/trackassembly/trackasmlib.lua | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lua/autorun/trackassembly_init.lua b/lua/autorun/trackassembly_init.lua index d4fce15d..3a1b05e8 100644 --- a/lua/autorun/trackassembly_init.lua +++ b/lua/autorun/trackassembly_init.lua @@ -27,7 +27,7 @@ asmlib.SetIndexes("V",1,2,3) asmlib.SetIndexes("A",1,2,3) asmlib.SetIndexes("S",4,5,6,7) asmlib.InitAssembly("track","assembly") -asmlib.SetOpVar("TOOL_VERSION","5.185") +asmlib.SetOpVar("TOOL_VERSION","5.186") asmlib.SetOpVar("DIRPATH_BAS",asmlib.GetOpVar("TOOLNAME_NL")..asmlib.GetOpVar("OPSYM_DIRECTORY")) asmlib.SetOpVar("DIRPATH_EXP","exp"..asmlib.GetOpVar("OPSYM_DIRECTORY")) asmlib.SetOpVar("DIRPATH_DSV","dsv"..asmlib.GetOpVar("OPSYM_DIRECTORY")) diff --git a/lua/trackassembly/trackasmlib.lua b/lua/trackassembly/trackasmlib.lua index 4920cefd..5c18089c 100644 --- a/lua/trackassembly/trackasmlib.lua +++ b/lua/trackassembly/trackasmlib.lua @@ -2656,8 +2656,7 @@ function CacheCorePoint(oRec,sName,oEnt) vCore:Set(vMax); vCore:Add(vMin); vCore:Mul(0.5) return StatusLog(vCore,"CacheCorePoint: Cached <"..sName.."> = ["..tostring(vCore).."]") elseif(SERVER and (oEnt and oEnt:IsValid()) and (sName == "SV")) then - local vMin, vMax = oEnt:OBBCenter() - vCore:Set(vMax); vCore:Add(vMin); vCore:Mul(0.5) + vCore:Set(oEnt:OBBCenter()) return StatusLog(vCore,"CacheCorePoint: Cached <"..sName.."> = ["..tostring(vCore).."]") elseif((sName == "P") or (sName == "O")) then local iInd = 1