Skip to content

Commit

Permalink
Fixed: GetCorePoint server side
Browse files Browse the repository at this point in the history
  • Loading branch information
dvdvideo1234 committed Jan 24, 2016
1 parent 330aee9 commit b1b158b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lua/autorun/trackassembly_init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down
3 changes: 1 addition & 2 deletions lua/trackassembly/trackasmlib.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b1b158b

Please sign in to comment.