mirror of
https://github.com/1dot13/source.git
synced 2026-08-19 14:20:30 +02:00
Convert INVTYPE boolean fields to flagmask (#325)
Rearranged fields from largest to smallest to remove alignment padding
This commit is contained in:
@@ -4257,7 +4257,7 @@ BOOLEAN FireTankCannon( SOLDIERCELL *pAttacker )
|
||||
{
|
||||
pItem = &pSoldier->inv[i];
|
||||
|
||||
if ( Item[pItem->usItem].cannon )
|
||||
if (ItemIsCannon(pItem->usItem))
|
||||
{
|
||||
PlayAutoResolveSample( Weapon[pItem->usItem].sSound, RATE_11025, 50, 1, MIDDLEPAN );
|
||||
|
||||
@@ -4291,7 +4291,7 @@ BOOLEAN FireAntiTankWeapon( SOLDIERCELL *pAttacker )
|
||||
{
|
||||
pItem = &pSoldier->inv[i];
|
||||
|
||||
if ( Item[pItem->usItem].usItemClass == IC_LAUNCHER || Item[pItem->usItem].cannon )
|
||||
if ( Item[pItem->usItem].usItemClass == IC_LAUNCHER || ItemIsCannon(pItem->usItem))
|
||||
{
|
||||
pAttacker->bWeaponSlot = (INT8)i;
|
||||
if ( gpAR->fUnlimitedAmmo )
|
||||
|
||||
Reference in New Issue
Block a user