mirror of
https://github.com/JonnyBro/beatrun.git
synced 2024-12-28 12:53:02 +05:00
fix checkpoint error on checkpoint deletion
This commit is contained in:
parent
9ff173ab35
commit
fc75bd10a0
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@ function ENT:DrawTranslucent()
|
||||||
render.DrawBeam(newpos, newpos + circleup, 8, 0, 1, red, true)
|
render.DrawBeam(newpos, newpos + circleup, 8, 0, 1, red, true)
|
||||||
end
|
end
|
||||||
|
|
||||||
local nextCP = Checkpoints[self:GetCPNum() + 1] or self
|
local nextCP = IsValid(Checkpoints[self:GetCPNum() + 1]) and Checkpoints[self:GetCPNum() + 1] or self
|
||||||
|
|
||||||
local selfpos = self:GetPos() + checkheight
|
local selfpos = self:GetPos() + checkheight
|
||||||
local fwAng = (nextCP:GetPos() - selfpos):GetNormalized():Angle()
|
local fwAng = (nextCP:GetPos() - selfpos):GetNormalized():Angle()
|
||||||
|
|
Loading…
Reference in a new issue