[Scummvm-cvs-logs] CVS: scummvm gui.cpp,1.42,1.43
Max Horn
fingolfin at users.sourceforge.net
Sun May 12 06:37:04 CEST 2002
Update of /cvsroot/scummvm/scummvm
In directory usw-pr-cvs1:/tmp/cvs-serv7104
Modified Files:
gui.cpp
Log Message:
implemented FR #549552 (save vs. load game slot numbering); commented out some weird code, somebody should look at that new FIXME
Index: gui.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/gui.cpp,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -d -r1.42 -r1.43
--- gui.cpp 8 May 2002 00:27:09 -0000 1.42
+++ gui.cpp 12 May 2002 13:36:55 -0000 1.43
@@ -748,20 +748,20 @@
switch (cmd) {
case 1: /* up button */
- if (_slotIndex == 0)
+ if (_slotIndex - 9 < 0)
return;
getSavegameNames(_slotIndex - 9);
draw(20, 28);
return;
case 2: /* down button */
- if (_slotIndex > 80)
+ if (_slotIndex + 9 > 80)
return;
getSavegameNames(_slotIndex + 9);
draw(20, 28);
return;
case 3: /* save button */
_cur_page = 2;
- getSavegameNames(0);
+ getSavegameNames(1); /* Start at 1, since slot 0 is reserved for autosave */
draw(0, 100);
return;
case 4: /* load button */
@@ -782,8 +782,8 @@
case 8:
if (lastEdit == -1 || game_names[lastEdit][0] == 0)
return;
- if (_cur_page == 2)
- _slotIndex++;
+// if (_cur_page == 2)
+// _slotIndex++;
_s->_saveLoadSlot = lastEdit + _slotIndex;
_s->_saveLoadCompatible = false;
@@ -819,8 +819,8 @@
{
int i;
_slotIndex = start;
- if (_cur_page == 2)
- start++;
+// if (_cur_page == 2)
+// start++;
for (i = 0; i < 9; i++, start++) {
valid_games[i] = _s->getSavegameName(start, game_names[i]);
@@ -947,8 +947,13 @@
void Gui::loop()
{
+ /* FIXME - _active is a bool, so what was that code meant to do ? */
+#if OLD_WEIRD_CODE
if (_active == 1) {
_active++;
+#else
+ if (_active) {
+#endif
draw(0, 200); // was 100
_s->pauseSounds(true);
More information about the Scummvm-git-logs
mailing list