From a15ba75736d15409876c1f0a44fffc99adf1c192 Mon Sep 17 00:00:00 2001
From: James Haley
Date: Sat, 12 Feb 2011 05:36:12 +0000
Subject: Bug fix for save/load/name your character menus, and some tweaks to
the project files.
Subversion-branch: /branches/strife-branch
Subversion-revision: 2256
---
msvc/libopl.vcproj | 1 +
msvc/libpcsound.vcproj | 3 ++-
msvc/libtextscreen.vcproj | 1 +
msvc/strife.vcproj | 8 +++++---
src/strife/m_menu.c | 18 +++++++++---------
5 files changed, 18 insertions(+), 13 deletions(-)
diff --git a/msvc/libopl.vcproj b/msvc/libopl.vcproj
index f7fbb59b..6c651776 100644
--- a/msvc/libopl.vcproj
+++ b/msvc/libopl.vcproj
@@ -127,6 +127,7 @@
/>
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;
}
--
cgit v1.2.3