mirror of
https://github.com/1dot13/source.git
synced 2026-08-26 14:30:26 +02:00
Convert to SoldierID
This commit is contained in:
@@ -2397,9 +2397,9 @@ INT8 AimMemberHireMerc()
|
|||||||
MERC_HIRE_STRUCT HireMercStruct;
|
MERC_HIRE_STRUCT HireMercStruct;
|
||||||
// UINT8 ubCurrentSoldier = AimMercArray[gbCurrentIndex];
|
// UINT8 ubCurrentSoldier = AimMercArray[gbCurrentIndex];
|
||||||
UINT8 ubCurrentSoldier = gAimAvailability[AimMercArray[gbCurrentIndex]].ProfilId;
|
UINT8 ubCurrentSoldier = gAimAvailability[AimMercArray[gbCurrentIndex]].ProfilId;
|
||||||
INT8 bReturnCode;
|
INT8 bReturnCode;
|
||||||
INT16 sSoldierID=0;
|
SoldierID sSoldierID = NOBODY;
|
||||||
INT8 bTypeOfContract=0;
|
INT8 bTypeOfContract=0;
|
||||||
|
|
||||||
|
|
||||||
if( LaptopSaveInfo.iCurrentBalance < giContractAmount )
|
if( LaptopSaveInfo.iCurrentBalance < giContractAmount )
|
||||||
@@ -2475,9 +2475,10 @@ INT8 AimMemberHireMerc()
|
|||||||
|
|
||||||
//Set the type of contract the merc is on
|
//Set the type of contract the merc is on
|
||||||
sSoldierID = GetSoldierIDFromMercID( ubCurrentSoldier );
|
sSoldierID = GetSoldierIDFromMercID( ubCurrentSoldier );
|
||||||
if( sSoldierID == -1 )
|
if( sSoldierID == NOBODY )
|
||||||
return( FALSE );
|
return( FALSE );
|
||||||
Menptr[ sSoldierID ].bTypeOfLastContract = bTypeOfContract;
|
|
||||||
|
sSoldierID->bTypeOfLastContract = bTypeOfContract;
|
||||||
|
|
||||||
|
|
||||||
//add an entry in the finacial page for the hiring of the merc
|
//add an entry in the finacial page for the hiring of the merc
|
||||||
|
|||||||
Reference in New Issue
Block a user