mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-24 10:40:46 +00:00
Fix saving a savegame's name.
git-svn-id: https://svn.eduke32.com/eduke32@4519 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
41fb46b1bc
commit
fc43cc666c
1 changed files with 5 additions and 2 deletions
|
@ -2723,8 +2723,9 @@ static void M_MenuEntryStringActivate(MenuGroup_t *group/*, MenuEntry_t *entry*/
|
|||
}
|
||||
}
|
||||
|
||||
static int32_t M_MenuEntryStringSubmit(MenuGroup_t *group /*, MenuEntry_t *entry, char *input*/)
|
||||
static int32_t M_MenuEntryStringSubmit(MenuGroup_t *group, MenuEntry_t *entry, char *input)
|
||||
{
|
||||
MenuString_t *object = (MenuString_t*)entry->entry;
|
||||
int32_t returnvar = 0;
|
||||
|
||||
switch (g_currentMenu)
|
||||
|
@ -2738,6 +2739,8 @@ static int32_t M_MenuEntryStringSubmit(MenuGroup_t *group /*, MenuEntry_t *entry
|
|||
ud.savegame[group->currentEntry][MAXSAVEGAMENAME-2] = 127;
|
||||
returnvar = -1;
|
||||
}
|
||||
else
|
||||
Bstrncpy(object->variable, object->editfield, object->maxlength);
|
||||
|
||||
G_SavePlayerMaybeMulti(group->currentEntry);
|
||||
|
||||
|
@ -4510,7 +4513,7 @@ static void M_RunMenuInput(Menu_t *cm)
|
|||
{
|
||||
S_PlaySound(PISTOL_BODYHIT);
|
||||
|
||||
if (!M_MenuEntryStringSubmit(currgroup /*, currentry, object->editfield*/))
|
||||
if (!M_MenuEntryStringSubmit(currgroup, currentry, object->editfield))
|
||||
Bstrncpy(object->variable, object->editfield, object->maxlength);
|
||||
|
||||
object->editfield = NULL;
|
||||
|
|
Loading…
Reference in a new issue