mirror of
https://github.com/1dot13/source.git
synced 2026-09-16 14:47:17 +02:00
Fix: New IMP gear selection method didn't include the Sidearm category so mercs could be left without a gun if their trait selection didn't include one.
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7908 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -601,6 +601,9 @@ void CalculatePossibleItems()
|
|||||||
AddItemCategoryToPossibleGear(i);
|
AddItemCategoryToPossibleGear(i);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// always add sidearms
|
||||||
|
AddItemCategoryToPossibleGear(IMP_SIDEARM);
|
||||||
|
|
||||||
//loop through all the buttons and reset them
|
//loop through all the buttons and reset them
|
||||||
for ( UINT8 uiCnt = 0; uiCnt< (gGameOptions.fNewTraitSystem ? IMP_SKILL_TRAITS_NEW_MAJOR_NONE : IMP_SKILL_TRAITS__NONE); ++uiCnt )
|
for ( UINT8 uiCnt = 0; uiCnt< (gGameOptions.fNewTraitSystem ? IMP_SKILL_TRAITS_NEW_MAJOR_NONE : IMP_SKILL_TRAITS__NONE); ++uiCnt )
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user