[Scummvm-cvs-logs] SF.net SVN: scummvm:[52996] scummvm/branches/branch-1-2-0/engines/agi/ saveload.cpp
eriktorbjorn at users.sourceforge.net
eriktorbjorn at users.sourceforge.net
Sun Oct 3 20:32:40 CEST 2010
Revision: 52996
http://scummvm.svn.sourceforge.net/scummvm/?rev=52996&view=rev
Author: eriktorbjorn
Date: 2010-10-03 18:32:39 +0000 (Sun, 03 Oct 2010)
Log Message:
-----------
AGI: Properly detect the autosave slot in the save dialog
It's not always the topmost slot. The more elegant solution is
probably to not show the autosave slot at all in the save dialog.
Modified Paths:
--------------
scummvm/branches/branch-1-2-0/engines/agi/saveload.cpp
Modified: scummvm/branches/branch-1-2-0/engines/agi/saveload.cpp
===================================================================
--- scummvm/branches/branch-1-2-0/engines/agi/saveload.cpp 2010-10-03 17:25:38 UTC (rev 52995)
+++ scummvm/branches/branch-1-2-0/engines/agi/saveload.cpp 2010-10-03 18:32:39 UTC (rev 52996)
@@ -809,12 +809,11 @@
printText("Select a slot in which you wish to\nsave the game:",
0, hm + 1, vm + 1, w, MSG_BOX_TEXT, MSG_BOX_COLOUR);
slot = selectSlot();
- if (slot == 0)
+ if (slot + _firstSlot == 0)
messageBox("That slot is for Autosave only.");
else if (slot < 0)
return errOK;
- }
- while (slot == 0);
+ } while (slot + _firstSlot == 0);
drawWindow(hp, vp + 5 * CHAR_LINES, GFX_WIDTH - hp,
GFX_HEIGHT - vp - 9 * CHAR_LINES);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list