mirror of
https://github.com/1dot13/source.git
synced 2026-08-12 14:10:23 +02:00
Convert INVTYPE boolean fields to flagmask (#325)
Rearranged fields from largest to smallest to remove alignment padding
This commit is contained in:
@@ -1845,7 +1845,7 @@ BOOLEAN RecruitRPC( UINT8 ubCharNum )
|
||||
if ( bSlot != NO_SLOT )
|
||||
{
|
||||
// if ( Item[ pNewSoldier->inv[ bSlot ].usItem ].fFlags & ITEM_TWO_HANDED )
|
||||
if ( Item[ pNewSoldier->inv[ bSlot ].usItem ].twohanded )
|
||||
if (ItemIsTwoHanded(pNewSoldier->inv[ bSlot ].usItem))
|
||||
{
|
||||
if ( bSlot != SECONDHANDPOS && pNewSoldier->inv[ SECONDHANDPOS ].exists() == true )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user