aboutsummaryrefslogtreecommitdiff
path: root/engines/agi/global.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2016-02-02 18:43:36 +0100
committerJohannes Schickel2016-02-02 20:15:18 +0100
commit6778175f6d2ba33565b15d3b94c8eea4b0ec3215 (patch)
tree9bd26262ae254315531c61cb055e0a238b79cfa1 /engines/agi/global.cpp
parent9ad3712aa30944fa3bdc5e03eb87499daf626592 (diff)
downloadscummvm-rg350-6778175f6d2ba33565b15d3b94c8eea4b0ec3215.tar.gz
scummvm-rg350-6778175f6d2ba33565b15d3b94c8eea4b0ec3215.tar.bz2
scummvm-rg350-6778175f6d2ba33565b15d3b94c8eea4b0ec3215.zip
AGI: Fix formatting.
This mostly enforces tabs for indentation and spaces for formatting. But also fixes spaces on empty lines, some extra/missing spaces. astyle + manual fixup
Diffstat (limited to 'engines/agi/global.cpp')
-rw-r--r--engines/agi/global.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/agi/global.cpp b/engines/agi/global.cpp
index e1172597e5..b9fcc34ad0 100644
--- a/engines/agi/global.cpp
+++ b/engines/agi/global.cpp
@@ -38,16 +38,16 @@ void AgiBase::setFlag(int16 flagNr, bool newState) {
flagPtr += flagNr >> 3;
if (newState)
- *flagPtr |= 1 << (flagNr & 0x07); // set bit
+ *flagPtr |= 1 << (flagNr & 0x07); // set bit
else
- *flagPtr &= ~(1 << (flagNr & 0x07)); // clear bit
+ *flagPtr &= ~(1 << (flagNr & 0x07)); // clear bit
}
void AgiBase::flipFlag(int16 flagNr) {
uint8 *flagPtr = _game.flags;
flagPtr += flagNr >> 3;
- *flagPtr ^= 1 << (flagNr & 0x07); // flip bit
+ *flagPtr ^= 1 << (flagNr & 0x07); // flip bit
}
void AgiEngine::setVar(int16 varNr, byte newValue) {
@@ -208,7 +208,7 @@ void AgiEngine::decrypt(uint8 *mem, int len) {
int i;
key = (getFeatures() & GF_AGDS) ? (const uint8 *)CRYPT_KEY_AGDS
- : (const uint8 *)CRYPT_KEY_SIERRA;
+ : (const uint8 *)CRYPT_KEY_SIERRA;
for (i = 0; i < len; i++)
*(mem + i) ^= *(key + (i % 11));