From 5831cdf4e82c72f717a86a76ca7dc6bfeb827b05 Mon Sep 17 00:00:00 2001 From: Nyeogmi Date: Mon, 19 Dec 2022 16:39:30 -0800 Subject: [PATCH] Remove old flash-prevention code --- chameleonic.p8 | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/chameleonic.p8 b/chameleonic.p8 index 03b1ee4..11e51cc 100644 --- a/chameleonic.p8 +++ b/chameleonic.p8 @@ -702,7 +702,6 @@ function player:update() end end - if (self.rope) self.rope:prevent_highlight(#self.todo>0) _apply(self,self.todo) if self.rope then @@ -927,7 +926,7 @@ end function rope:draw(artificial_dx,artificial_dy) local points,highlight=self:_tug(true) - if (self:busy() or self._prevent_highlight) highlight=nil + if (self:busy()) highlight=nil if (self.state.name=="done") return local perc_to_show=1.0 if (self.state.name=="destroy") perc_to_show=(1.0-self.state.frame/5)^2 @@ -1439,15 +1438,6 @@ function rope:tug() return rc end -function rope:prevent_highlight(prevent) - if prevent then - local points,highlight=self:_tug(true) - if (self:busy() or highlight==nil) self._prevent_highlight=true - else - self._prevent_highlight=false - end -end - function rope:_tug(hypothetically) local ancs=self:_anchors_simplified() local touched={}