mirror of
				https://github.com/KartKrewDev/RingRacers.git
				synced 2025-10-30 08:01:28 +00:00 
			
		
		
		
	Scale player weight buff from speed to mobjscale
This commit is contained in:
		
							parent
							
								
									5f42692b8f
								
							
						
					
					
						commit
						7b2095f6a5
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -1508,7 +1508,7 @@ static fixed_t K_PlayerWeight(mobj_t *mobj, mobj_t *against)
 | 
			
		|||
		weight = (mobj->player->kartweight) * FRACUNIT;
 | 
			
		||||
 | 
			
		||||
		if (mobj->player->speed > spd)
 | 
			
		||||
			weight += (mobj->player->speed - spd) / 8;
 | 
			
		||||
			weight += FixedDiv((mobj->player->speed - spd), 8 * mapobjectscale);
 | 
			
		||||
 | 
			
		||||
		if (mobj->player->itemtype == KITEM_BUBBLESHIELD)
 | 
			
		||||
			weight += 9*FRACUNIT;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue