Bugfix for hangs on scene changes in Discworld 1 after having loaded a savegame from the GMM when the title screens are displayed
svn-id: r42626
This commit is contained in:
parent
0e2f267329
commit
b40dc424b3
1 changed files with 6 additions and 0 deletions
|
@ -84,6 +84,8 @@ extern void syncGlobInfo(Common::Serializer &s);
|
|||
// in POLYGONS.C
|
||||
extern void syncPolyInfo(Common::Serializer &s);
|
||||
|
||||
extern int sceneCtr;
|
||||
|
||||
//----------------- LOCAL DEFINES --------------------
|
||||
|
||||
struct SaveGameHeader {
|
||||
|
@ -510,6 +512,10 @@ save_failure:
|
|||
void ProcessSRQueue(void) {
|
||||
switch (SRstate) {
|
||||
case SR_DORESTORE:
|
||||
// If a load has been done directly from title screens, set a larger value for scene ctr so the
|
||||
// code used to skip the title screens in Discworld 1 gets properly disabled
|
||||
if (sceneCtr < 10) sceneCtr = 10;
|
||||
|
||||
if (DoRestore()) {
|
||||
DoRestoreScene(srsd, false);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue