diff options
author | Torbjörn Andersson | 2007-02-17 15:37:49 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2007-02-17 15:37:49 +0000 |
commit | f33da9e4125ef4c570e15cc4c5cae38a7a238eea (patch) | |
tree | c5351882fc84a63267f9f752278706db7d412c5a /engines/parallaction/commands.cpp | |
parent | 9ab2ca5bc7dec069c575504b3e70fad8b63d3706 (diff) | |
download | scummvm-rg350-f33da9e4125ef4c570e15cc4c5cae38a7a238eea.tar.gz scummvm-rg350-f33da9e4125ef4c570e15cc4c5cae38a7a238eea.tar.bz2 scummvm-rg350-f33da9e4125ef4c570e15cc4c5cae38a7a238eea.zip |
Some indentation and format changes. Mostly replacing spaces with tabs.
svn-id: r25654
Diffstat (limited to 'engines/parallaction/commands.cpp')
-rw-r--r-- | engines/parallaction/commands.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/engines/parallaction/commands.cpp b/engines/parallaction/commands.cpp index 44910b35aa..73341b6d2f 100644 --- a/engines/parallaction/commands.cpp +++ b/engines/parallaction/commands.cpp @@ -295,19 +295,19 @@ void runCommands(Command *list, Zone *z) { break; case CMD_ON: // on - // WORKAROUND: the original DOS-based engine didn't check u->_zone before dereferencing - // the pointer to get structure members, thus leading to crashes in systems with memory - // protection. - // As a side note, the overwritten address is the 5th entry in the DOS interrupt table - // (print screen handler): this suggests that a system would hang when the print screen - // key is pressed after playing Nippon Safes, provided that this code path is taken. - if (u->_zone != NULL) { - u->_zone->_flags &= ~kFlagsRemove; - u->_zone->_flags |= kFlagsActive; - if ((u->_zone->_type & 0xFFFF) == kZoneGet) { - addJob(&jobDisplayDroppedItem, u->_zone, kPriority17 ); - } - } + // WORKAROUND: the original DOS-based engine didn't check u->_zone before dereferencing + // the pointer to get structure members, thus leading to crashes in systems with memory + // protection. + // As a side note, the overwritten address is the 5th entry in the DOS interrupt table + // (print screen handler): this suggests that a system would hang when the print screen + // key is pressed after playing Nippon Safes, provided that this code path is taken. + if (u->_zone != NULL) { + u->_zone->_flags &= ~kFlagsRemove; + u->_zone->_flags |= kFlagsActive; + if ((u->_zone->_type & 0xFFFF) == kZoneGet) { + addJob(&jobDisplayDroppedItem, u->_zone, kPriority17 ); + } + } break; case CMD_OFF: // off @@ -342,7 +342,7 @@ void runCommands(Command *list, Zone *z) { } } - debugC(1, kDebugLocation, "runCommands completed"); + debugC(1, kDebugLocation, "runCommands completed"); return; |