mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
bug fixes from Overhaul:
- Data type changes - Templates removed git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@871 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -522,7 +522,7 @@ void UpdateSectorExitMenu( )
|
||||
MSYS_DisableRegion(&(gExitDialog.SingleRegion) );
|
||||
if( gExitDialog.fSelectedMercIsEPC )
|
||||
{ //EPCs cannot leave the sector alone and must be escorted
|
||||
wchar_t str[ 256 ];
|
||||
CHAR16 str[ 256 ];
|
||||
swprintf( str, pExitingSectorHelpText[ EXIT_GUI_ESCORTED_CHARACTERS_MUST_BE_ESCORTED_HELPTEXT ], MercPtrs[ gusSelectedSoldier ]->name );
|
||||
SetButtonFastHelpText( gExitDialog.uiSingleMoveButton, str );
|
||||
SetRegionFastHelpText( &gExitDialog.SingleRegion, str );
|
||||
@@ -531,7 +531,7 @@ void UpdateSectorExitMenu( )
|
||||
{ //It has been previously determined that there are only two mercs in the squad, the selected merc
|
||||
//isn't an EPC, but the other merc is. That means that this merc cannot leave the sector alone
|
||||
//as he would isolate the EPC.
|
||||
wchar_t str[ 256 ];
|
||||
CHAR16 str[ 256 ];
|
||||
if( !gExitDialog.fSquadHasMultipleEPCs )
|
||||
{
|
||||
if( gMercProfiles[ MercPtrs[ gusSelectedSoldier ]->ubProfile ].bSex == MALE )
|
||||
@@ -562,7 +562,7 @@ void UpdateSectorExitMenu( )
|
||||
}
|
||||
else
|
||||
{
|
||||
wchar_t str[ 256 ];
|
||||
CHAR16 str[ 256 ];
|
||||
EnableButton( gExitDialog.uiSingleMoveButton );
|
||||
MSYS_EnableRegion(&(gExitDialog.SingleRegion) );
|
||||
swprintf( str, pExitingSectorHelpText[ EXIT_GUI_SINGLE_TRAVERSAL_WILL_SEPARATE_SQUADS_HELPTEXT ], MercPtrs[ gusSelectedSoldier ]->name );
|
||||
@@ -698,7 +698,7 @@ BOOLEAN HandleSectorExitMenu( )
|
||||
|
||||
void RemoveSectorExitMenu( BOOLEAN fOk )
|
||||
{
|
||||
wchar_t Str[ 50 ];
|
||||
CHAR16 Str[ 50 ];
|
||||
|
||||
if ( gfInSectorExitMenu )
|
||||
{
|
||||
@@ -740,7 +740,7 @@ void RemoveSectorExitMenu( BOOLEAN fOk )
|
||||
// Check if there are more than one in this squad
|
||||
if ( gExitDialog.ubNumPeopleOnSquad == 0 )
|
||||
{
|
||||
swprintf( (wchar_t *) Str, pMessageStrings[ MSG_EPC_CANT_TRAVERSE ], MercPtrs[ gusSelectedSoldier ]->name );
|
||||
swprintf( Str, pMessageStrings[ MSG_EPC_CANT_TRAVERSE ], MercPtrs[ gusSelectedSoldier ]->name );
|
||||
|
||||
DoMessageBox( MSG_BOX_BASIC_STYLE, Str, GAME_SCREEN, ( UINT8 )MSG_BOX_FLAG_OK, NULL, NULL );
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user