Remove unnecessary exception handling in the draw function.
This commit is contained in:
parent
95cecdf5f0
commit
b560aeadc1
3
draw.py
3
draw.py
@ -30,10 +30,7 @@ def draw(level,gPlayer,fov,res,dscale):
|
||||
m = None
|
||||
rot = irot**(i-(res/2)) * iprot
|
||||
for j in level:
|
||||
try: # Function "LineIntersection" faults from time to time
|
||||
cInt = MobiusInt(j.pointA,j.pointB,gPlayer.cPos,rot)
|
||||
except:
|
||||
continue
|
||||
if cDot(rot,MobiusAdd(cInt,-gPlayer.cPos)) > 0:
|
||||
continue
|
||||
rDist = MobiusDist(cInt,gPlayer.cPos) * dscale
|
||||
|
Loading…
Reference in New Issue
Block a user