diff --git a/draw.py b/draw.py index b9af465..7290441 100644 --- a/draw.py +++ b/draw.py @@ -23,7 +23,7 @@ def draw(level,gPlayer,fov,res): if cDot(rot,MobiusAdd(cInt,-gPlayer.cPos)) > 0: continue rDist = MobiusDist(cInt,gPlayer.cPos)*1.1 - if not (j.isFinite and cBetween(j.pointA,j.pointB,cInt)): + if j.isFinite and not cBetween(j.pointA,j.pointB,cInt): continue if (1 - m.height) > rDist: m = DrawnSegment(1-rDist,j.color)