Remove recursive WdWd
This commit is contained in:
@@ -110,7 +110,7 @@ putLitButOnPosExtTrig' col thePS cnt =
|
||||
\plmnt ->
|
||||
jps0'
|
||||
( PutButton
|
||||
(makeButton col (WorldEffects [changeLight (fromJust $ _plMID plmnt), oneff (trigid tp)]))
|
||||
(makeButton col (buteff (trigid tp) (fromJust $ _plMID plmnt)))
|
||||
{ _btPos = V2 0 (-1)
|
||||
, _btRot = pi
|
||||
}
|
||||
@@ -119,8 +119,7 @@ putLitButOnPosExtTrig' col thePS cnt =
|
||||
<&> plSpot
|
||||
.~ _plSpot plmnt
|
||||
where
|
||||
buteff i j = SetTriggerAndSetLSCol True i (V3 0 0.5 0) j
|
||||
shp = fmap (fmap $ colorSH col) aShape
|
||||
trigid tp = fromJust $ _plMID tp
|
||||
oneff = SetTrigger True
|
||||
changeLight = SetLSCol (V3 0 0.5 0)
|
||||
ls = lsColPosRad (V3 0.5 0 0) (V3 0 0 50) 50
|
||||
|
||||
Reference in New Issue
Block a user