- Fixed: The game would crash after informing you of a duplicate class registration
because PClass::CreateDerivedClass() did not initialize everything before calling InsertIntoHash(). - Fixed: Forcefully removing a weapon from a player's inventory would not reset the player's refire counter. - Fixed: FreeKeySections() was called before M_SaveDefaults() during shutdown, so all custom keys would go to a "(null)" section instead of their intended section. SVN r248 (trunk)
This commit is contained in:
parent
18af8a57cf
commit
56427d1b1c
5 changed files with 19 additions and 8 deletions
|
|
@ -2938,6 +2938,7 @@ void M_SaveCustomKeys (FConfigFile *config, char *section, char *subsection)
|
|||
|
||||
if (item->type == whitetext)
|
||||
{
|
||||
assert (item->e.command != NULL);
|
||||
sprintf (subsection, "%s.Bindings", item->e.command);
|
||||
M_DoSaveKeys (config, section, (int)i, false);
|
||||
sprintf (subsection, "%s.DoubleBindings", item->e.command);
|
||||
|
|
@ -2952,7 +2953,7 @@ void M_SaveCustomKeys (FConfigFile *config, char *section, char *subsection)
|
|||
|
||||
static int AddKeySpot;
|
||||
|
||||
static void FreeKeySections()
|
||||
void FreeKeySections()
|
||||
{
|
||||
const unsigned int numStdControls = countof(ControlsItems);
|
||||
unsigned int i;
|
||||
|
|
@ -3008,7 +3009,6 @@ CCMD (addkeysection)
|
|||
}
|
||||
}
|
||||
|
||||
atterm (FreeKeySections);
|
||||
if (i == last)
|
||||
{ // Add the new section
|
||||
// Limit the ini name to 32 chars
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue