Lower-token way to prevent flicker

This commit is contained in:
Pyrex 2022-12-18 18:42:13 -08:00
parent 14e37ba9dd
commit 4bb8612f75

View File

@ -579,14 +579,6 @@ function player:update()
-- todo: other anim stuff
xs[#xs].px=0
xs[#xs].py=0
xs[1].update=function(s)
if (s.rope) s.rope:prevent_highlight(true)
return true
end
xs[#xs].update=function(s)
if (s.rope) s.rope:prevent_highlight(false)
return true
end
return xs
end
@ -653,6 +645,7 @@ function player:update()
end
end
if (self.rope) self.rope:prevent_highlight(#self.todo)
_apply(self,self.todo)
if self.rope then