mirror of
				https://gitgud.io/c0ffeeeeeeee/rimworld-animations.git
				synced 2024-08-15 00:43:45 +00:00 
			
		
		
		
	fixed pawn ordering bug
This commit is contained in:
		
							parent
							
								
									d777c98732
								
							
						
					
					
						commit
						732a3034a3
					
				
					 3 changed files with 2 additions and 2 deletions
				
			
		
										
											Binary file not shown.
										
									
								
							| 
						 | 
				
			
			@ -51,7 +51,7 @@ namespace Rimworld_Animations {
 | 
			
		|||
                        AnimationSettings.rotation.Add(def.defName + curPawn.def.defName + bodyTypeDef + ActorIndex, 0);
 | 
			
		||||
                    }
 | 
			
		||||
 | 
			
		||||
                    List<Pawn> pawnsToAnimateOrdered = curPawn.TryGetComp<CompBodyAnimator>().actorsInCurrentAnimation.OrderBy(x => Int32.Parse(x.Name.ToStringSafe())).ToList();
 | 
			
		||||
                    List<Pawn> pawnsToAnimateOrdered = curPawn.TryGetComp<CompBodyAnimator>().actorsInCurrentAnimation.OrderBy(x => x.Name).ToList();
 | 
			
		||||
 | 
			
		||||
                    string pawnNamesAndSexType = "";
 | 
			
		||||
                    foreach (Pawn p in pawnsToAnimateOrdered)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -94,7 +94,7 @@ namespace Rimworld_Animations {
 | 
			
		|||
					pawnsToAnimate[i].TryGetComp<CompBodyAnimator>().isAnimating = false;
 | 
			
		||||
				}
 | 
			
		||||
 | 
			
		||||
				List<Pawn> pawnsToAnimateOrdered = pawnsToAnimate.OrderBy(x => Int32.Parse(x.Name.ToStringSafe())).ToList();
 | 
			
		||||
				List<Pawn> pawnsToAnimateOrdered = pawnsToAnimate.OrderBy(x => x.Name).ToList();
 | 
			
		||||
 | 
			
		||||
				string pawnNamesAndSexType = "";
 | 
			
		||||
				foreach (Pawn p in pawnsToAnimateOrdered)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue