Skip to content

Commit

Permalink
Console|Fixed: Saving console state if .cfg could not be found
Browse files Browse the repository at this point in the history
If the game.cfg file was missing, the flag to allow saving the state
was never set.
  • Loading branch information
skyjake committed Apr 15, 2012
1 parent 0f4f1a5 commit 2ec0ee6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doomsday/engine/portable/src/con_config.c
Expand Up @@ -240,6 +240,9 @@ boolean Con_ParseCommands2(const char* fileName, int flags)
cfgFile[FILENAME_T_LASTINDEX] = '\0';
}

// Update the allowed operations.
flagsAllow |= flags & (CPCF_ALLOW_SAVE_STATE | CPCF_ALLOW_SAVE_BINDINGS);

// Open the file.
file = F_Open(fileName, "rt");
if(!file) return false;
Expand All @@ -265,9 +268,6 @@ boolean Con_ParseCommands2(const char* fileName, int flags)

F_Delete(file);

// Update the allowed operations.
flagsAllow |= flags & (CPCF_ALLOW_SAVE_STATE | CPCF_ALLOW_SAVE_BINDINGS);

return true;
}

Expand Down

0 comments on commit 2ec0ee6

Please sign in to comment.