From 41620c95ccd771b78ead14bebaab0045079f95c4 Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Fri, 29 Jan 2016 15:28:17 +0100 Subject: AGI: remove commented out code from CmdSetSimple() should have been removed already. --- engines/agi/op_cmd.cpp | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'engines') diff --git a/engines/agi/op_cmd.cpp b/engines/agi/op_cmd.cpp index bb10c27d6e..00b8dbf8ba 100644 --- a/engines/agi/op_cmd.cpp +++ b/engines/agi/op_cmd.cpp @@ -861,14 +861,12 @@ void cmdSetSimple(AgiGame *state, uint8 *parameter) { state->automaticSave = false; // Try to get description for automatic saves -// if (state->strings_curLogic->texts && state->_curLogic->numTexts >= textNr) { - textPtr = state->strings[stringNr]; - strncpy(state->automaticSaveDescription, textPtr, sizeof(state->automaticSaveDescription)); - if (state->automaticSaveDescription[0]) { - // We got it and it's set, so enable automatic saving - state->automaticSave = true; - } -// } + textPtr = state->strings[stringNr]; + strncpy(state->automaticSaveDescription, textPtr, sizeof(state->automaticSaveDescription)); + if (state->automaticSaveDescription[0]) { + // We got it and it's set, so enable automatic saving + state->automaticSave = true; + } } else { // AGI256 and AGI256-2 use this unknown170 command to load 256 color pictures. // Load the picture. Similar to void cmdLoad_pic(AgiGame *state, uint8 *p). -- cgit v1.2.3