mirror of
https://github.com/1dot13/source.git
synced 2026-08-12 14:10:23 +02:00
added credit check to MERC purchases
fixed appearance of enemy MERC NPC's to show stats when targeted fixed realtime added check to only allow AI during game mode coop git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@2167 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -652,8 +652,11 @@ BOOLEAN MercFilesHireMerc(UINT8 ubMercID)
|
||||
//Set the time and ID of the last hired merc will arrive
|
||||
// LaptopSaveInfo.sLastHiredMerc.iIdOfMerc = HireMercStruct.ubProfileID;
|
||||
// LaptopSaveInfo.sLastHiredMerc.uiArrivalTime = HireMercStruct.uiTimeTillMercArrives;
|
||||
|
||||
|
||||
if(is_networked && (gMercProfiles[ ubMercID ].sSalary > LaptopSaveInfo.iCurrentBalance) )
|
||||
{
|
||||
DoLapTopMessageBox( MSG_BOX_LAPTOP_DEFAULT, sATMText[ 4 ], LAPTOP_SCREEN, MSG_BOX_FLAG_OK, NULL);
|
||||
return(FALSE);//not enough big ones $$$sATMText
|
||||
}
|
||||
bReturnCode = HireMerc( &HireMercStruct );
|
||||
//already have 20 mercs on the team
|
||||
if( bReturnCode == MERC_HIRE_OVER_18_MERCS_HIRED )
|
||||
|
||||
Reference in New Issue
Block a user