[Scummvm-git-logs] scummvm master -> b288640d90d72f950ffcfe2cd413779443b666ba
dreammaster
paulfgilbert at gmail.com
Sun Jul 7 03:20:10 CEST 2019
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
b288640d90 GLK: ALAN3: Another attempt at an openpandora fix
Commit: b288640d90d72f950ffcfe2cd413779443b666ba
https://github.com/scummvm/scummvm/commit/b288640d90d72f950ffcfe2cd413779443b666ba
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2019-07-06T18:20:03-07:00
Commit Message:
GLK: ALAN3: Another attempt at an openpandora fix
Changed paths:
engines/glk/alan2/alan2.cpp
diff --git a/engines/glk/alan2/alan2.cpp b/engines/glk/alan2/alan2.cpp
index 9b2478f..4168ca2 100644
--- a/engines/glk/alan2/alan2.cpp
+++ b/engines/glk/alan2/alan2.cpp
@@ -157,14 +157,15 @@ static void syncObjects(Common::Serializer &s) {
}
static void syncEventQueue(Common::Serializer &s) {
+ int i;
if (s.isSaving()) {
eventq[etop].time = 0; // Mark the top
- for (int i = 0; i <= etop; ++i)
+ for (i = 0; i <= etop; ++i)
eventq[i].synchronize(s);
} else {
- for (etop = 0; eventq[etop - 1].time; ++etop)
- eventq[etop].synchronize(s);
- --etop;
+ for (i = 0; eventq[i - 1].time; ++i)
+ eventq[i].synchronize(s);
+ etop = i - 1;
}
}
More information about the Scummvm-git-logs
mailing list