mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-25 11:26:37 +00:00 
			
		
		
		
	Ignore the axis argument when rotating the player
This commit is contained in:
		
							parent
							
								
									a37066c9f0
								
							
						
					
					
						commit
						42020bc2c3
					
				
					 2 changed files with 5 additions and 3 deletions
				
			
		|  | @ -68,6 +68,7 @@ | ||||||
|     Bug #6321: Arrow enchantments should always be applied to the target |     Bug #6321: Arrow enchantments should always be applied to the target | ||||||
|     Bug #6322: Total sold/cost should reset to 0 when there are no items offered |     Bug #6322: Total sold/cost should reset to 0 when there are no items offered | ||||||
|     Bug #6323: Wyrmhaven: Alboin doesn't follower the player character out of his house |     Bug #6323: Wyrmhaven: Alboin doesn't follower the player character out of his house | ||||||
|  |     Bug #6324: Special Slave Companions: Can't buy the slave companions | ||||||
|     Bug #6326: Detect Enchantment/Key should detect items in unresolved containers |     Bug #6326: Detect Enchantment/Key should detect items in unresolved containers | ||||||
|     Bug #6327: Blocking roots the character in place |     Bug #6327: Blocking roots the character in place | ||||||
|     Bug #6343: Magic projectile speed doesn't take race weight into account |     Bug #6343: Magic projectile speed doesn't take race weight into account | ||||||
|  |  | ||||||
|  | @ -622,12 +622,13 @@ namespace MWScript | ||||||
|                     runtime.pop(); |                     runtime.pop(); | ||||||
| 
 | 
 | ||||||
|                     auto rot = ptr.getRefData().getPosition().asRotationVec3(); |                     auto rot = ptr.getRefData().getPosition().asRotationVec3(); | ||||||
|                     if (axis == "x") |                     // Regardless of the axis argument, the player may only be rotated on Z
 | ||||||
|  |                     if (axis == "z" || MWMechanics::getPlayer() == ptr) | ||||||
|  |                         rot.z() += rotation; | ||||||
|  |                     else if (axis == "x") | ||||||
|                         rot.x() += rotation; |                         rot.x() += rotation; | ||||||
|                     else if (axis == "y") |                     else if (axis == "y") | ||||||
|                         rot.y() += rotation; |                         rot.y() += rotation; | ||||||
|                     else if (axis == "z") |  | ||||||
|                         rot.z() += rotation; |  | ||||||
|                     MWBase::Environment::get().getWorld()->rotateObject(ptr,rot); |                     MWBase::Environment::get().getWorld()->rotateObject(ptr,rot); | ||||||
|                 } |                 } | ||||||
|         }; |         }; | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue