summaryrefslogtreecommitdiff
path: root/src/strife
diff options
context:
space:
mode:
authorJames Haley2011-02-12 05:36:12 +0000
committerJames Haley2011-02-12 05:36:12 +0000
commita15ba75736d15409876c1f0a44fffc99adf1c192 (patch)
tree0f79beda3feef52849eae059ea45e624d05d57af /src/strife
parenta7a435cb7d5756ebff87d5f965b27fcc28fd96f6 (diff)
downloadchocolate-doom-a15ba75736d15409876c1f0a44fffc99adf1c192.tar.gz
chocolate-doom-a15ba75736d15409876c1f0a44fffc99adf1c192.tar.bz2
chocolate-doom-a15ba75736d15409876c1f0a44fffc99adf1c192.zip
Bug fix for save/load/name your character menus, and some tweaks to the
project files. Subversion-branch: /branches/strife-branch Subversion-revision: 2256
Diffstat (limited to 'src/strife')
-rw-r--r--src/strife/m_menu.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/strife/m_menu.c b/src/strife/m_menu.c
index 2bd6560e..92564e96 100644
--- a/src/strife/m_menu.c
+++ b/src/strife/m_menu.c
@@ -591,8 +591,8 @@ void M_DrawNameChar(void)
if (saveStringEnter)
{
- i = M_StringWidth(savegamestrings[saveSlot]); // STRIFE-TODO: verify variable
- M_WriteText(LoadDef.x + i,LoadDef.y+LINEHEIGHT*saveSlot,"_");
+ i = M_StringWidth(savegamestrings[quickSaveSlot]);
+ M_WriteText(LoadDef.x + i,LoadDef.y+LINEHEIGHT*quickSaveSlot,"_");
}
}
@@ -728,8 +728,8 @@ void M_DrawSave(void)
if (saveStringEnter)
{
- i = M_StringWidth(savegamestrings[saveSlot]);
- M_WriteText(LoadDef.x + i,LoadDef.y+LINEHEIGHT*saveSlot,"_");
+ i = M_StringWidth(savegamestrings[quickSaveSlot]);
+ M_WriteText(LoadDef.x + i,LoadDef.y+LINEHEIGHT*quickSaveSlot,"_");
}
}
@@ -1793,13 +1793,13 @@ boolean M_Responder (event_t* ev)
if (saveCharIndex > 0)
{
saveCharIndex--;
- savegamestrings[saveSlot][saveCharIndex] = 0;
+ savegamestrings[quickSaveSlot][saveCharIndex] = 0;
}
break;
case KEY_ESCAPE:
saveStringEnter = 0;
- strcpy(&savegamestrings[saveSlot][0],saveOldString);
+ strcpy(&savegamestrings[quickSaveSlot][0],saveOldString);
break;
case KEY_ENTER:
@@ -1822,11 +1822,11 @@ boolean M_Responder (event_t* ev)
if (ch >= 32 && ch <= 127 &&
saveCharIndex < SAVESTRINGSIZE-1 &&
- M_StringWidth(savegamestrings[saveSlot]) <
+ M_StringWidth(savegamestrings[quickSaveSlot]) <
(SAVESTRINGSIZE-2)*8)
{
- savegamestrings[saveSlot][saveCharIndex++] = ch;
- savegamestrings[saveSlot][saveCharIndex] = 0;
+ savegamestrings[quickSaveSlot][saveCharIndex++] = ch;
+ savegamestrings[quickSaveSlot][saveCharIndex] = 0;
}
break;
}