mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
- bugfix: CTDs after you have placed your mercs before the attacking occurs
- added notification when you try to create a new IMP and you already have the maxium number of mercs (18) in your team. git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@619 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -1782,10 +1782,10 @@ INT8 AimMemberHireMerc()
|
||||
|
||||
//if we succesfully hired the merc
|
||||
bReturnCode = HireMerc( &HireMercStruct );
|
||||
if( bReturnCode == MERC_HIRE_OVER_20_MERCS_HIRED )
|
||||
if( bReturnCode == MERC_HIRE_OVER_18_MERCS_HIRED )
|
||||
{
|
||||
//display a warning saying u cant hire more then 20 mercs
|
||||
DoLapTopMessageBox( MSG_BOX_LAPTOP_DEFAULT, AimPopUpText[ AIM_MEMBER_ALREADY_HAVE_20_MERCS ], LAPTOP_SCREEN, MSG_BOX_FLAG_OK, NULL);
|
||||
//display a warning saying u cant hire more than 18 mercs
|
||||
DoLapTopMessageBox( MSG_BOX_LAPTOP_DEFAULT, AimPopUpText[ AIM_MEMBER_ALREADY_HAVE_18_MERCS ], LAPTOP_SCREEN, MSG_BOX_FLAG_OK, NULL);
|
||||
return(FALSE);
|
||||
}
|
||||
else if( bReturnCode == MERC_HIRE_FAILED )
|
||||
@@ -4167,10 +4167,10 @@ BOOLEAN QuickHireMerc()
|
||||
SetFlagToForceHireMerc( TRUE );
|
||||
bReturnCode = HireMerc( &HireMercStruct );
|
||||
SetFlagToForceHireMerc( FALSE );
|
||||
if( bReturnCode == MERC_HIRE_OVER_20_MERCS_HIRED )
|
||||
if( bReturnCode == MERC_HIRE_OVER_18_MERCS_HIRED )
|
||||
{
|
||||
//display a warning saying u cant hire more then 20 mercs
|
||||
DoLapTopMessageBox( MSG_BOX_LAPTOP_DEFAULT, AimPopUpText[ AIM_MEMBER_ALREADY_HAVE_20_MERCS ], LAPTOP_SCREEN, MSG_BOX_FLAG_OK, NULL);
|
||||
//display a warning saying u cant hire more than 18 mercs
|
||||
DoLapTopMessageBox( MSG_BOX_LAPTOP_DEFAULT, AimPopUpText[ AIM_MEMBER_ALREADY_HAVE_18_MERCS ], LAPTOP_SCREEN, MSG_BOX_FLAG_OK, NULL);
|
||||
return(FALSE);
|
||||
}
|
||||
else if( bReturnCode == MERC_HIRE_FAILED )
|
||||
|
||||
Reference in New Issue
Block a user