mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
Removed distinction between male and female IMP slots. Number of IMP slots is now set via MAX_IMP_CHARACTERS, slots are set with IMP_'number'.
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8608 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -379,23 +379,11 @@ void BtnIMPBeginScreenDoneCallback(GUI_BUTTON *btn,INT32 reason)
|
||||
// check to see if a name has been selected, if not, do not allow player to proceed with more char generation
|
||||
if( ( pFullNameString[ 0 ] != 0) && ( pFullNameString[ 0 ] != L' ' ) && ( bGenderFlag != -1 ) )
|
||||
{
|
||||
if (bGenderFlag == IMP_MALE)
|
||||
if ( CountEmptyIMPSlots() == 0 )
|
||||
{
|
||||
if (CountEmptyIMPSlots(MALE) == 0)
|
||||
{
|
||||
// You cannot have more than the male max I.M.P characters on your team.
|
||||
DoLapTopMessageBox( MSG_BOX_IMP_STYLE, pImpPopUpStrings[ 9 ], LAPTOP_SCREEN, MSG_BOX_FLAG_OK, NULL);
|
||||
bProceed = FALSE;
|
||||
}
|
||||
}
|
||||
else if (bGenderFlag == IMP_FEMALE)
|
||||
{
|
||||
if (CountEmptyIMPSlots(FEMALE) == 0)
|
||||
{
|
||||
// You cannot have more than the female max I.M.P characters on your team.
|
||||
DoLapTopMessageBox( MSG_BOX_IMP_STYLE, pImpPopUpStrings[ 9 ], LAPTOP_SCREEN, MSG_BOX_FLAG_OK, NULL);
|
||||
bProceed = FALSE;
|
||||
}
|
||||
// You cannot have more than the max I.M.P characters on your team.
|
||||
DoLapTopMessageBox( MSG_BOX_IMP_STYLE, pImpPopUpStrings[9], LAPTOP_SCREEN, MSG_BOX_FLAG_OK, NULL );
|
||||
bProceed = FALSE;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user