Skip to content

Commit

Permalink
Updated: Ray entity micro-optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
dvdvideo1234 committed Sep 14, 2017
1 parent 6bed08e commit d290222
Show file tree
Hide file tree
Showing 2 changed files with 3 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 @@ -33,7 +33,7 @@ local asmlib = trackasmlib

------ CONFIGURE ASMLIB ------
asmlib.InitBase("track","assembly")
asmlib.SetOpVar("TOOL_VERSION","5.373")
asmlib.SetOpVar("TOOL_VERSION","5.374")
asmlib.SetIndexes("V",1,2,3)
asmlib.SetIndexes("A",1,2,3)
asmlib.SetIndexes("S",4,5,6,7)
Expand Down
4 changes: 2 additions & 2 deletions lua/trackassembly/trackasmlib.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3216,9 +3216,9 @@ local function IntersectRayUpdate(stRay)
return StatusLog(nil,"IntersectRayUpdate: Ray invalid") end
local ryEnt = stRay.Ent
if(ryEnt and ryEnt:IsValid()) then
local ePos, eAng = stRay.Ent:GetPos(), stRay.Ent:GetAngles()
local ePos, eAng = ryEnt:GetPos(), ryEnt:GetAngles()
stRay.Orw:Set(stRay.Org); stRay.Orw:Rotate(eAng); stRay.Orw:Add(ePos)
stRay.Diw:Set(stRay.Ent:LocalToWorldAngles(stRay.Dir))
stRay.Diw:Set(ryEnt:LocalToWorldAngles(stRay.Dir))
end; return stRay
end

Expand Down

0 comments on commit d290222

Please sign in to comment.