mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-31 21:26:41 +00:00 
			
		
		
		
	Fix shield displaying on inventory avatar (bug #4720)
This commit is contained in:
		
							parent
							
								
									a354879477
								
							
						
					
					
						commit
						7438e20ee1
					
				
					 2 changed files with 21 additions and 7 deletions
				
			
		|  | @ -6,6 +6,7 @@ | |||
|     Bug #4701: PrisonMarker record is not hardcoded like other markers | ||||
|     Bug #4714: Crash upon game load in the repair menu while the "Your repair failed!" message is active | ||||
|     Bug #4715: "Cannot get class of an empty object" exception after pressing ESC in the dialogue mode | ||||
|     Bug #4720: Inventory avatar has shield with two-handed weapon during [un]equipping animation | ||||
|     Feature #2229: Improve pathfinding AI | ||||
|     Feature #3442: Default values for fallbacks from ini file | ||||
|     Feature #4673: Weapon sheathing | ||||
|  |  | |||
|  | @ -305,24 +305,37 @@ namespace MWRender | |||
|                    type == ESM::Weapon::LongBladeOneHand || | ||||
|                    type == ESM::Weapon::BluntOneHand || | ||||
|                    type == ESM::Weapon::AxeOneHand || | ||||
|                    type == ESM::Weapon::MarksmanThrown || | ||||
|                    type == ESM::Weapon::MarksmanCrossbow || | ||||
|                    type == ESM::Weapon::MarksmanBow) | ||||
|                    type == ESM::Weapon::MarksmanThrown) | ||||
|                 { | ||||
|                     groupname = "inventoryweapononehand"; | ||||
|                 } | ||||
|                 else if(type == ESM::Weapon::MarksmanCrossbow || | ||||
|                         type == ESM::Weapon::MarksmanBow) | ||||
|                 { | ||||
|                     groupname = "inventoryweapononehand"; | ||||
|                     showCarriedLeft = false; | ||||
|                 } | ||||
|                 else if(type == ESM::Weapon::LongBladeTwoHand || | ||||
|                         type == ESM::Weapon::BluntTwoClose || | ||||
|                         type == ESM::Weapon::AxeTwoHand) | ||||
|                 { | ||||
|                     groupname = "inventoryweapontwohand"; | ||||
|                     showCarriedLeft = false; | ||||
|                 } | ||||
|                 else if(type == ESM::Weapon::BluntTwoWide || | ||||
|                         type == ESM::Weapon::SpearTwoWide) | ||||
|                 { | ||||
|                     groupname = "inventoryweapontwowide"; | ||||
|                     showCarriedLeft = false; | ||||
|                 } | ||||
|                 else | ||||
|                 { | ||||
|                     groupname = "inventoryhandtohand"; | ||||
| 
 | ||||
|                 showCarriedLeft = (iter->getClass().canBeEquipped(*iter, mCharacter).first != 2); | ||||
|                     showCarriedLeft = false; | ||||
|                 } | ||||
|            } | ||||
|             else | ||||
|                 groupname = "inventoryhandtohand"; | ||||
|            else | ||||
|                groupname = "inventoryhandtohand"; | ||||
|         } | ||||
| 
 | ||||
|         mAnimation->showCarriedLeft(showCarriedLeft); | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue