mirror of
				https://github.com/KartKrewDev/RingRacers.git
				synced 2025-10-30 08:01:28 +00:00 
			
		
		
		
	Party::rebuild_displayplayers: let displayplayers be reconfigured outside of level context
- This lets party changes take effect during GS_INTERMISSION or GS_VOTING - displayplayers must always be updated, in order for splitscreen viewports to appear when the level starts - Only G_FixCamera is not called, because it may rely on player_t.mo and I'm scared of that
This commit is contained in:
		
							parent
							
								
									6f27714011
								
							
						
					
					
						commit
						da2150ee7a
					
				
					 1 changed files with 6 additions and 7 deletions
				
			
		| 
						 | 
				
			
			@ -128,16 +128,15 @@ public:
 | 
			
		|||
			return;
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		// Rendering stuff is not valid outside of levels.
 | 
			
		||||
		if (!G_GamestateUsesLevel())
 | 
			
		||||
		{
 | 
			
		||||
			return;
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		for (std::size_t i = 0; i < size(); ++i)
 | 
			
		||||
		{
 | 
			
		||||
			displayplayers[i] = at(i);
 | 
			
		||||
			G_FixCamera(1 + i);
 | 
			
		||||
 | 
			
		||||
			// Camera is not valid outside of levels.
 | 
			
		||||
			if (G_GamestateUsesLevel())
 | 
			
		||||
			{
 | 
			
		||||
				G_FixCamera(1 + i);
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		r_splitscreen = size() - 1;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue