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 |         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 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user