Store 32 instead of 31 disabilities

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8827 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Flugente
2020-06-20 16:14:46 +00:00
parent d33bc9123c
commit 4e86046d0c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -329,7 +329,7 @@ BOOLEAN DoesMercHaveDisability( SOLDIERTYPE *pSoldier, UINT8 aVal )
if ( pSoldier->newdrugs.drugdisability == aVal )
return TRUE;
if ( pSoldier->usDisabilityFlagMask & ( 1 << aVal ) )
if ( pSoldier->usDisabilityFlagMask & ( 1 << (aVal - 1) ) )
return TRUE;
}
+1 -1
View File
@@ -19316,7 +19316,7 @@ void SOLDIERTYPE::AnnounceDisease( UINT8 aDisease )
void SOLDIERTYPE::AddDisability( UINT8 aDisability )
{
this->usDisabilityFlagMask |= ( 1 << aDisability );
this->usDisabilityFlagMask |= ( 1 << (aDisability - 1 ) );
}
// do we have any disease? fDiagnosedOnly: check for wether we know of this infection fHealableOnly: check wether it can be healed