aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorMartin Kiewitz2016-01-29 15:28:17 +0100
committerMartin Kiewitz2016-01-29 15:28:17 +0100
commit41620c95ccd771b78ead14bebaab0045079f95c4 (patch)
treeba796743900bc012d44fae0d1980beba6562fbf3 /engines
parent5f43f079472dd2cbd091ba813cf23d0c3315db76 (diff)
downloadscummvm-rg350-41620c95ccd771b78ead14bebaab0045079f95c4.tar.gz
scummvm-rg350-41620c95ccd771b78ead14bebaab0045079f95c4.tar.bz2
scummvm-rg350-41620c95ccd771b78ead14bebaab0045079f95c4.zip
AGI: remove commented out code from CmdSetSimple()
should have been removed already.
Diffstat (limited to 'engines')
-rw-r--r--engines/agi/op_cmd.cpp14
1 files changed, 6 insertions, 8 deletions
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).