From e0a059394975b0dc9c52f3152488ee3bad0594c0 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Wed, 27 May 2009 12:46:11 +0000 Subject: Fixed a typo, and added parentheses to clarify order svn-id: r40938 --- engines/sci/engine/game.cpp | 2 +- engines/sci/engine/kmisc.cpp | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/engines/sci/engine/game.cpp b/engines/sci/engine/game.cpp index 878109a2e7..eef539d463 100644 --- a/engines/sci/engine/game.cpp +++ b/engines/sci/engine/game.cpp @@ -438,7 +438,7 @@ int script_init_engine(EngineState *s, sci_version_t version) { s->bp_list = NULL; // No breakpoints defined s->have_bp = 0; - if (s->flags & GF_SCI1_LOFSABSOLUTE && s->version < SCI_VERSION_1_1) + if ((s->flags & GF_SCI1_LOFSABSOLUTE) && s->version < SCI_VERSION_1_1) s->seg_manager->setExportWidth(1); else s->seg_manager->setExportWidth(0); diff --git a/engines/sci/engine/kmisc.cpp b/engines/sci/engine/kmisc.cpp index 5f7efd0823..e1772926d7 100644 --- a/engines/sci/engine/kmisc.cpp +++ b/engines/sci/engine/kmisc.cpp @@ -201,7 +201,7 @@ reg_t kMemory(EngineState *s, int funct_nr, int argc, reg_t *argv) { if (!ref) { // This occurs in KQ5CD when interacting with certain objects - warning("Attempt to poke invalid memory at %04x:%04x", PRINT_REG(argv[1])); + warning("Attempt to peek invalid memory at %04x:%04x", PRINT_REG(argv[1])); return s->r_acc; } if (s->seg_manager->_heap[argv[1].segment]->getType() == MEM_OBJ_LOCALS) @@ -214,7 +214,6 @@ reg_t kMemory(EngineState *s, int funct_nr, int argc, reg_t *argv) { byte *ref = kernel_dereference_bulk_pointer(s, argv[1], 2); if (!ref) { - // This occurs in KQ5CD when interacting with certain objects warning("Attempt to poke invalid memory at %04x:%04x", PRINT_REG(argv[1])); return s->r_acc; } -- cgit v1.2.3