mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-31 20:56:39 +00:00 
			
		
		
		
	Disallow non-bipedal hand-to-hand refreshes
This commit is contained in:
		
							parent
							
								
									b81d4cc11c
								
							
						
					
					
						commit
						7bd4971e0c
					
				
					 2 changed files with 5 additions and 3 deletions
				
			
		|  | @ -709,7 +709,9 @@ void CharacterController::refreshCurrentAnims(CharacterState idle, CharacterStat | |||
|     if (mPtr.getClass().isActor()) | ||||
|         refreshHitRecoilAnims(idle); | ||||
| 
 | ||||
|     std::string weap = getWeaponType(mWeaponType)->mShortGroup; | ||||
|     std::string weap; | ||||
|     if (mWeaponType != ESM::Weapon::HandToHand || mPtr.getClass().isBipedal(mPtr)) | ||||
|         weap = getWeaponType(mWeaponType)->mShortGroup; | ||||
| 
 | ||||
|     refreshJumpAnims(weap, jump, idle, force); | ||||
|     refreshMovementAnims(weap, movement, idle, force); | ||||
|  | @ -1127,7 +1129,7 @@ bool CharacterController::updateCarriedLeftVisible(const int weaptype) const | |||
|     return mAnimation->updateCarriedLeftVisible(weaptype); | ||||
| } | ||||
| 
 | ||||
| bool CharacterController::updateState(CharacterState& idle) | ||||
| bool CharacterController::updateState(CharacterState idle) | ||||
| { | ||||
|     const MWWorld::Class &cls = mPtr.getClass(); | ||||
|     CreatureStats &stats = cls.getCreatureStats(mPtr); | ||||
|  |  | |||
|  | @ -205,7 +205,7 @@ class CharacterController : public MWRender::Animation::TextKeyListener | |||
| 
 | ||||
|     void clearAnimQueue(bool clearPersistAnims = false); | ||||
| 
 | ||||
|     bool updateState(CharacterState& idle); | ||||
|     bool updateState(CharacterState idle); | ||||
|     void updateIdleStormState(bool inwater); | ||||
| 
 | ||||
|     std::string chooseRandomAttackAnimation() const; | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue