diff options
author | David Corrales | 2007-06-23 18:51:33 +0000 |
---|---|---|
committer | David Corrales | 2007-06-23 18:51:33 +0000 |
commit | cacd7a28fd51d960947de88abbf30c487e66529d (patch) | |
tree | f3baa59853bfb307e452b86b9d93c4737b1fa6ab /engines/agi/op_cmd.cpp | |
parent | 0ac96302fe9c04df79cb01a77d19535b45fe2db0 (diff) | |
parent | 90c2210dae8c91fa8babc6b05564e15c9d445d18 (diff) | |
download | scummvm-rg350-cacd7a28fd51d960947de88abbf30c487e66529d.tar.gz scummvm-rg350-cacd7a28fd51d960947de88abbf30c487e66529d.tar.bz2 scummvm-rg350-cacd7a28fd51d960947de88abbf30c487e66529d.zip |
Merged the FSNode branch with trunk r27031:27680
svn-id: r27681
Diffstat (limited to 'engines/agi/op_cmd.cpp')
-rw-r--r-- | engines/agi/op_cmd.cpp | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/engines/agi/op_cmd.cpp b/engines/agi/op_cmd.cpp index a51f536b49..c51514f237 100644 --- a/engines/agi/op_cmd.cpp +++ b/engines/agi/op_cmd.cpp @@ -515,7 +515,24 @@ cmd(obj_status_f) { * unk_181: Deactivate keypressed control (default control of ego) */ cmd(set_simple) { - game.simpleSave = true; + if (!(g_agi->getFeatures() & (GF_AGI256 | GF_AGI256_2))) { + game.simpleSave = true; + } else { // AGI256 and AGI256-2 use this unknown170 command to load 256 color pictures. + // Load the picture. Similar to cmd(load_pic). + g_sprites->eraseBoth(); + g_agi->agiLoadResource(rPICTURE, _v[p0]); + + // Draw the picture. Similar to cmd(draw_pic). + g_picture->decodePicture(_v[p0], false, true); + g_sprites->blitBoth(); + game.pictureShown = 0; + + // Show the picture. Similar to cmd(show_pic). + g_agi->setflag(fOutputMode, false); + cmd_close_window(NULL); + g_picture->showPic(); + game.pictureShown = 1; + } } cmd(pop_script) { |