Merged from revision: 7092

Fixes (by Buggler)
- Fixed possible assertion moving a single-merc squad to another sector when using 'Selected Merc' option in Exit Dialog box by disabling the option for the described scenario
- Added page numbers to option and saveload screen (saveload screen page number are not properly refreshed though)

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7093 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Wanne
2014-03-19 11:50:06 +00:00
parent c9b0c6fc12
commit bc8ec35314
3 changed files with 10 additions and 1 deletions
Binary file not shown.
+9
View File
@@ -117,6 +117,9 @@ UINT16 NUM_SLOT;
#define SLG_SAVE_LOAD_BTN_POS_X iScreenWidthOffset + 123
#define SLG_SAVE_LOAD_BTN_POS_Y iScreenHeightOffset + 438
#define SLG_SAVE_LOAD_PAGE_POS_X SLG_SAVE_LOAD_BTN_POS_X + 195
#define SLG_SAVE_LOAD_PAGE_POS_Y SLG_SAVE_LOAD_BTN_POS_Y + 10
#define SLG_DOUBLE_CLICK_DELAY 500
//defines for saved game version status
@@ -931,6 +934,7 @@ void ExitSaveLoadScreen()
void RenderSaveLoadScreen()
{
HVOBJECT hPixHandle;
CHAR16 sPage[60];
//if we are going to be instantly leaving the screen, dont draw the numbers
if( gfLoadGameUponEntry )
@@ -964,6 +968,11 @@ void RenderSaveLoadScreen()
DisplaySaveGameList();
//Display the option page numbers
swprintf( sPage, L"%d", PAGE_SLOT + 1 );
DrawTextToScreen( sPage, SLG_SAVE_LOAD_PAGE_POS_X, SLG_SAVE_LOAD_PAGE_POS_Y, 0, OPT_BUTTON_FONT,
OPT_BUTTON_ON_COLOR, FONT_MCOLOR_BLACK, FALSE, CENTER_JUSTIFIED );
InvalidateRegion( 0, 0, SCREEN_WIDTH , SCREEN_HEIGHT );
}
+1 -1
View File
@@ -278,7 +278,7 @@ BOOLEAN InternalInitSectorExitMenu( UINT8 ubDirection, INT32 sAdditionalData )//
}
}
if( ubNumMercs == 1 && ubNumEPCs >= 1 )
if( ubNumMercs == 1 )
{
gExitDialog.fSingleMoveOn = FALSE;
gExitDialog.fAllMoveOn = TRUE;