mirror of
				https://github.com/KartKrewDev/RingRacers.git
				synced 2025-10-30 08:01:28 +00:00 
			
		
		
		
	Fix even slope lighting being inconsistent
This commit is contained in:
		
							parent
							
								
									ea96a33e41
								
							
						
					
					
						commit
						d5c384bf02
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -78,7 +78,7 @@ void P_UpdateSlopeLightOffset(pslope_t *slope)
 | 
			
		|||
	}
 | 
			
		||||
	else
 | 
			
		||||
	{
 | 
			
		||||
		light = FixedDiv(R_PointToAngle2(0, 0, abs(slope->d.x), abs(slope->d.y)), ANGLE_90);
 | 
			
		||||
		light = FixedDiv(R_PointToAngle2(0, 0, abs(slope->normal.y), abs(slope->normal.x)), ANGLE_90);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	zMul = min(FRACUNIT, abs(slope->zdelta)*3/2); // *3/2, to make 60 degree slopes match walls.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -388,7 +388,7 @@ visplane_t *R_FindPlane(fixed_t height, INT32 picnum, INT32 lightlevel,
 | 
			
		|||
 | 
			
		||||
	if (slope != NULL && P_ApplyLightOffset(lightlevel >> LIGHTSEGSHIFT))
 | 
			
		||||
	{
 | 
			
		||||
		if (reverseLight)
 | 
			
		||||
		if (reverseLight && maplighting.directional == true)
 | 
			
		||||
		{
 | 
			
		||||
			lightlevel -= slope->lightOffset * 8;
 | 
			
		||||
		}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue