mirror of
				https://github.com/TES3MP/openmw-tes3mp.git
				synced 2025-10-31 20:26:48 +00:00 
			
		
		
		
	little fix (thanks greye!)
This commit is contained in:
		
							parent
							
								
									379fbccf8c
								
							
						
					
					
						commit
						0bc48cc5ea
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		|  | @ -292,9 +292,10 @@ namespace MWScript | |||
|                     runtime.pop(); | ||||
|                     Interpreter::Type_Float zRot = runtime[0].mFloat; | ||||
|                     runtime.pop(); | ||||
| 
 | ||||
|                     int cx,cy; | ||||
|                     MWBase::Environment::get().getWorld()->positionToIndex(x,y,cx,cy); | ||||
|                     MWBase::Environment::get().getWorld()->moveObject(ptr, | ||||
|                         *MWBase::Environment::get().getWorld()->getExterior(x,y),x,y,z); | ||||
|                         *MWBase::Environment::get().getWorld()->getExterior(cx,cy),x,y,z); | ||||
|                     float ax = Ogre::Radian(ptr.getRefData().getPosition().rot[0]).valueDegrees(); | ||||
|                     float ay = Ogre::Radian(ptr.getRefData().getPosition().rot[1]).valueDegrees(); | ||||
|                     if(ptr.getTypeName() == "struct ESM::NPC")//some morrowind oddity
 | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue