mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
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:
Binary file not shown.
@@ -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 );
|
||||
}
|
||||
|
||||
|
||||
@@ -278,7 +278,7 @@ BOOLEAN InternalInitSectorExitMenu( UINT8 ubDirection, INT32 sAdditionalData )//
|
||||
}
|
||||
}
|
||||
|
||||
if( ubNumMercs == 1 && ubNumEPCs >= 1 )
|
||||
if( ubNumMercs == 1 )
|
||||
{
|
||||
gExitDialog.fSingleMoveOn = FALSE;
|
||||
gExitDialog.fAllMoveOn = TRUE;
|
||||
|
||||
Reference in New Issue
Block a user