Remove unnecessary exception handling in the draw function.

This commit is contained in:
bʰedoh₂ swé 2024-04-11 01:39:33 +05:00
parent 95cecdf5f0
commit b560aeadc1

View File

@ -30,10 +30,7 @@ def draw(level,gPlayer,fov,res,dscale):
m = None m = None
rot = irot**(i-(res/2)) * iprot rot = irot**(i-(res/2)) * iprot
for j in level: for j in level:
try: # Function "LineIntersection" faults from time to time cInt = MobiusInt(j.pointA,j.pointB,gPlayer.cPos,rot)
cInt = MobiusInt(j.pointA,j.pointB,gPlayer.cPos,rot)
except:
continue
if cDot(rot,MobiusAdd(cInt,-gPlayer.cPos)) > 0: if cDot(rot,MobiusAdd(cInt,-gPlayer.cPos)) > 0:
continue continue
rDist = MobiusDist(cInt,gPlayer.cPos) * dscale rDist = MobiusDist(cInt,gPlayer.cPos) * dscale