mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user