mirror of
				https://github.com/KartKrewDev/RingRacers.git
				synced 2025-10-30 08:01:28 +00:00 
			
		
		
		
	Fix odd low player count servers
Has been killing me ever since it got into master. When vote count changes, one of the votes won't be sliding back and forth across the entire screen.
This commit is contained in:
		
							parent
							
								
									770293e04c
								
							
						
					
					
						commit
						5207af40b1
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -301,12 +301,14 @@ static void Y_SortPile(void)
 | 
			
		|||
 | 
			
		||||
			if (votesLeft > rowSize)
 | 
			
		||||
			{
 | 
			
		||||
				SINT8 topRowIndex = (rowSize - ((votesLeft - 1) % rowSize)) - 1;
 | 
			
		||||
 | 
			
		||||
				if (odd == true)
 | 
			
		||||
				{
 | 
			
		||||
					rowSize--;
 | 
			
		||||
					topRowIndex--;
 | 
			
		||||
				}
 | 
			
		||||
 | 
			
		||||
				const SINT8 topRowIndex = (rowSize - ((votesLeft - 1) % rowSize)) - 1;
 | 
			
		||||
				xOffset = -(rowSize - 1) + (topRowIndex << 1);
 | 
			
		||||
 | 
			
		||||
				pile->destY -= PILE_SPACING_H >> 1;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue