Savegame slot now defaults to the last one used during one execution of
uqm (bug #477), from chmmravatar git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1230 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -1,4 +1,6 @@
|
|||||||
Changes towards version 0.4:
|
Changes towards version 0.4:
|
||||||
|
- Savegame slot now defaults to the last one used during one execution
|
||||||
|
of uqm (bug #477), from chmmravatar
|
||||||
- Fixed one-pixel glitch in shipyard when scrapping (bug #461),
|
- Fixed one-pixel glitch in shipyard when scrapping (bug #461),
|
||||||
from Paxtez
|
from Paxtez
|
||||||
- Adjusted subtitle timings when there are no oggs (part of bug #362),
|
- Adjusted subtitle timings when there are no oggs (part of bug #362),
|
||||||
|
|||||||
@@ -37,6 +37,7 @@ void SaveProblem (void);
|
|||||||
#define SAVES_PER_PAGE 5 //Should divide evenly into MAX_SAVED_GAMES for 'Per-Page' Scrolling
|
#define SAVES_PER_PAGE 5 //Should divide evenly into MAX_SAVED_GAMES for 'Per-Page' Scrolling
|
||||||
|
|
||||||
static PMENU_STATE pLocMenuState;
|
static PMENU_STATE pLocMenuState;
|
||||||
|
static BYTE prev_save; //keeps track of the last slot that was saved or loaded
|
||||||
|
|
||||||
void
|
void
|
||||||
ConfirmSaveLoad (STAMP *MsgStamp)
|
ConfirmSaveLoad (STAMP *MsgStamp)
|
||||||
@@ -987,8 +988,7 @@ DoPickGame (PMENU_STATE pMS)
|
|||||||
if (!pMS->Initialized)
|
if (!pMS->Initialized)
|
||||||
{
|
{
|
||||||
pMS->delta_item = (SIZE)pMS->CurState;
|
pMS->delta_item = (SIZE)pMS->CurState;
|
||||||
pMS->CurState = NewState = 0;
|
pMS->CurState = NewState = prev_save;
|
||||||
|
|
||||||
pMS->InputFunc = DoPickGame;
|
pMS->InputFunc = DoPickGame;
|
||||||
SleepThreadUntil ((DWORD)pMS->CurFrame);
|
SleepThreadUntil ((DWORD)pMS->CurFrame);
|
||||||
pMS->CurFrame = 0;
|
pMS->CurFrame = 0;
|
||||||
@@ -1033,6 +1033,7 @@ Restart:
|
|||||||
else if (CurrentMenuState.select)
|
else if (CurrentMenuState.select)
|
||||||
{
|
{
|
||||||
pSD = &((SUMMARY_DESC *)pMS->CurString)[pMS->CurState];
|
pSD = &((SUMMARY_DESC *)pMS->CurString)[pMS->CurState];
|
||||||
|
prev_save = pMS->CurState;
|
||||||
if (pMS->delta_item == SAVE_GAME || pSD->year_index)
|
if (pMS->delta_item == SAVE_GAME || pSD->year_index)
|
||||||
{
|
{
|
||||||
SetSemaphore (GraphicsSem);
|
SetSemaphore (GraphicsSem);
|
||||||
|
|||||||
Reference in New Issue
Block a user