mirror of
				https://github.com/TES3MP/openmw-tes3mp.git
				synced 2025-11-04 00:26:45 +00:00 
			
		
		
		
	Spawn players in Pelagiad on startup
This commit is contained in:
		
							parent
							
								
									77aff346e9
								
							
						
					
					
						commit
						abaa8cac72
					
				
					 1 changed files with 8 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -257,6 +257,9 @@ namespace MWWorld
 | 
			
		|||
            if (!getPlayerPtr().isInCell())
 | 
			
		||||
            {
 | 
			
		||||
                ESM::Position pos;
 | 
			
		||||
 | 
			
		||||
                /* Disabled by tes3mp
 | 
			
		||||
 | 
			
		||||
                const int cellSize = 8192;
 | 
			
		||||
                pos.pos[0] = cellSize/2;
 | 
			
		||||
                pos.pos[1] = cellSize/2;
 | 
			
		||||
| 
						 | 
				
			
			@ -265,6 +268,11 @@ namespace MWWorld
 | 
			
		|||
                pos.rot[1] = 0;
 | 
			
		||||
                pos.rot[2] = 0;
 | 
			
		||||
                mWorldScene->changeToExteriorCell(pos, true);
 | 
			
		||||
                */
 | 
			
		||||
 | 
			
		||||
                findExteriorPosition("Pelagiad", pos);
 | 
			
		||||
                changeToExteriorCell(pos, true);
 | 
			
		||||
                fixPosition(getPlayerPtr());
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue