[Scummvm-cvs-logs] SF.net SVN: scummvm:[52997] scummvm/trunk/engines/agi/saveload.cpp
eriktorbjorn at users.sourceforge.net
eriktorbjorn at users.sourceforge.net
Sun Oct 3 20:38:38 CEST 2010
Revision: 52997
http://scummvm.svn.sourceforge.net/scummvm/?rev=52997&view=rev
Author: eriktorbjorn
Date: 2010-10-03 18:38:38 +0000 (Sun, 03 Oct 2010)
Log Message:
-----------
AGI: Properly detect the autosave slot in the save dialog
Forward-ported from branch. Let's do this the easy way for now, even
if I'm not sure why the save dialog shows the autosave slot anyway.
Modified Paths:
--------------
scummvm/trunk/engines/agi/saveload.cpp
Modified: scummvm/trunk/engines/agi/saveload.cpp
===================================================================
--- scummvm/trunk/engines/agi/saveload.cpp 2010-10-03 18:32:39 UTC (rev 52996)
+++ scummvm/trunk/engines/agi/saveload.cpp 2010-10-03 18:38:38 UTC (rev 52997)
@@ -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