From 4bc01ab7d585f6be9d25a96ce9544b95f459d7e6 Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Sun, 31 Jan 2016 17:56:53 +0100 Subject: AGI: getflag/setflag/etc. cleanup renamed getflag() to getFlag() renamed setflag() to setFlag() renamed flipflag() to flipFlag() preagi: renamed setFlag for this engine to setWinnieFlag --- engines/agi/console.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'engines/agi/console.cpp') diff --git a/engines/agi/console.cpp b/engines/agi/console.cpp index 39719a4fde..0e2101ce43 100644 --- a/engines/agi/console.cpp +++ b/engines/agi/console.cpp @@ -75,7 +75,7 @@ bool Console::Cmd_SetFlag(int argc, const char **argv) { } int p1 = (int)atoi(argv[1]); int p2 = (int)atoi(argv[2]); - _vm->setflag(p1, !!p2); + _vm->setFlag(p1, !!p2); return true; } @@ -290,7 +290,7 @@ bool Console::Cmd_Flags(int argc, const char **argv) { for (i = 0; i < 255;) { debugPrintf("%3d ", i); for (j = 0; j < 10; j++, i++) { - debugPrintf("%c ", _vm->getflag(i) ? 'T' : 'F'); + debugPrintf("%c ", _vm->getFlag(i) ? 'T' : 'F'); } debugPrintf("\n"); } @@ -542,7 +542,7 @@ bool Console::Cmd_VmFlags(int argc, const char **argv) { if (argc < 3) { // show contents - if (_vm->getflag(flagNr)) { + if (_vm->getFlag(flagNr)) { debugPrintf("flag %d == set\n", flagNr); } else { debugPrintf("flag %d == not set\n", flagNr); @@ -557,10 +557,10 @@ bool Console::Cmd_VmFlags(int argc, const char **argv) { } if (!newFlagState) { - _vm->setflag(flagNr, 0); + _vm->setFlag(flagNr, false); debugPrintf("flag %d reset.\n", flagNr); } else { - _vm->setflag(flagNr, 1); + _vm->setFlag(flagNr, true); debugPrintf("flag %d set.\n", flagNr); } } -- cgit v1.2.3