diff options
author | Max Horn | 2004-10-16 22:28:29 +0000 |
---|---|---|
committer | Max Horn | 2004-10-16 22:28:29 +0000 |
commit | b41902f4079793236a20ebc380481fd598401c1d (patch) | |
tree | a880c59aa57fbbeda66b0f455b0e9023058c02ed /kyra/script_v1.cpp | |
parent | f0a7f8f0fbe1869b8ada4df161c8e4fb38ff8699 (diff) | |
download | scummvm-rg350-b41902f4079793236a20ebc380481fd598401c1d.tar.gz scummvm-rg350-b41902f4079793236a20ebc380481fd598401c1d.tar.bz2 scummvm-rg350-b41902f4079793236a20ebc380481fd598401c1d.zip |
Fix whitespace / code formatting to match out guidelines
svn-id: r15576
Diffstat (limited to 'kyra/script_v1.cpp')
-rw-r--r-- | kyra/script_v1.cpp | 134 |
1 files changed, 67 insertions, 67 deletions
diff --git a/kyra/script_v1.cpp b/kyra/script_v1.cpp index a224107760..753d9484a3 100644 --- a/kyra/script_v1.cpp +++ b/kyra/script_v1.cpp @@ -115,21 +115,21 @@ namespace Kyra { void VMContext::c1_negate(void) { switch(_argument) { - case 0: - topStack() = !topStack(); + case 0: + topStack() = !topStack(); break; - - case 1: - topStack() = -topStack(); + + case 1: + topStack() = -topStack(); break; - - case 2: - topStack() = ~topStack(); + + case 2: + topStack() = ~topStack(); break; - - default: - debug("unkown negate instruction %d", _argument); - _error = true; + + default: + debug("unkown negate instruction %d", _argument); + _error = true; break; }; } @@ -142,76 +142,76 @@ namespace Kyra { y = popStack(); switch(_argument) { - case 0: - res = x && y; + case 0: + res = x && y; break; - - case 1: - res = x || y; + + case 1: + res = x || y; break; - - case 3: - res = x != y; + + case 3: + res = x != y; break; - - case 4: - res = x < y; + + case 4: + res = x < y; + break; + + case 5: + res = x <= y; break; - case 5: - res = x <= y; + case 6: + res = x > y; break; - - case 6: - res = x > y; + + case 7: + res = x >= y; break; - - case 7: - res = x >= y; + + case 8: + res = x + y; break; - case 8: - res = x + y; - break; - - case 9: - res = x - y; + case 9: + res = x - y; break; - - case 10: - res = x * y; + + case 10: + res = x * y; break; - - case 11: - res = x / y; + + case 11: + res = x / y; break; - - case 12: - res = x >> y; + + case 12: + res = x >> y; break; - - case 13: - res = x << y; + + case 13: + res = x << y; break; - - case 14: - res = x & y; + + case 14: + res = x & y; break; - - case 15: - res = x | y; + + case 15: + res = x | y; break; - - case 16: - res = x % y; + + case 16: + res = x % y; break; - - case 17: - res = x ^ y; + + case 17: + res = x ^ y; break; - - default: - debug("unknown evaluate command"); + + default: + debug("unknown evaluate command"); break; }; @@ -232,7 +232,7 @@ namespace Kyra { paramString(4), paramString(5)); } - void VMContext::o1_0x68(void) { - debug("o1_0x68 was called with param0: '%d' and param1: '%d'", param(0), param(1)); - } + void VMContext::o1_0x68(void) { + debug("o1_0x68 was called with param0: '%d' and param1: '%d'", param(0), param(1)); + } } // end of namespace Kyra |