diff options
author | Max Horn | 2005-05-08 21:49:52 +0000 |
---|---|---|
committer | Max Horn | 2005-05-08 21:49:52 +0000 |
commit | cca744f69a9eb079a314c8f39af1faa4e7b1e5a6 (patch) | |
tree | 1eb00deac3941d844ce98abc10eb4339955ef61d /simon | |
parent | 013e30eb389c40eb579cc8e3f05b8e8da80925ca (diff) | |
download | scummvm-rg350-cca744f69a9eb079a314c8f39af1faa4e7b1e5a6.tar.gz scummvm-rg350-cca744f69a9eb079a314c8f39af1faa4e7b1e5a6.tar.bz2 scummvm-rg350-cca744f69a9eb079a314c8f39af1faa4e7b1e5a6.zip |
Comply to our coding conventions
svn-id: r17975
Diffstat (limited to 'simon')
-rw-r--r-- | simon/debug.cpp | 2 | ||||
-rw-r--r-- | simon/saveload.cpp | 4 | ||||
-rw-r--r-- | simon/simon.cpp | 6 |
3 files changed, 6 insertions, 6 deletions
diff --git a/simon/debug.cpp b/simon/debug.cpp index b8a274dacc..3d3c8dbb9a 100644 --- a/simon/debug.cpp +++ b/simon/debug.cpp @@ -409,7 +409,7 @@ void SimonEngine::dump_vga_bitmaps(const byte *vga, byte *vga1, int res) { i = 538; - for(i = 1; ; i++) { + for (i = 1; ; i++) { p2 = vga + i * 8; offs = READ_BE_UINT32(p2); diff --git a/simon/saveload.cpp b/simon/saveload.cpp index 0820a2eed5..f55f7d2fe8 100644 --- a/simon/saveload.cpp +++ b/simon/saveload.cpp @@ -71,7 +71,7 @@ int SimonEngine::display_savegame_list(int curpos, bool load, char *dst) { slot = curpos; while (curpos + 6 > slot) { - if(!(in = _saveFileMan->openForLoading(gen_savename(slot)))) + if (!(in = _saveFileMan->openForLoading(gen_savename(slot)))) break; in->read(dst, 18); @@ -95,7 +95,7 @@ int SimonEngine::display_savegame_list(int curpos, bool load, char *dst) { } } else { if (curpos + 6 == slot) { - if((in = _saveFileMan->openForLoading(gen_savename(slot)))) { + if ((in = _saveFileMan->openForLoading(gen_savename(slot)))) { slot++; delete in; } diff --git a/simon/simon.cpp b/simon/simon.cpp index 1eeae88131..963b3af147 100644 --- a/simon/simon.cpp +++ b/simon/simon.cpp @@ -3560,17 +3560,17 @@ void SimonEngine::talk_with_text(uint vgaSpriteId, uint color, const char *strin } \ (var) = bb & 1; \ bb >>= 1; \ -}while(0) +}while (0) #define SD_GETBITS(var, nbits) do { \ bc = (nbits); \ (var) = 0; \ - while(bc--) { \ + while (bc--) { \ (var) <<= 1; \ SD_GETBIT(bit); \ (var) |= bit; \ } \ -}while(0) +}while (0) #define SD_TYPE_LITERAL (0) #define SD_TYPE_MATCH (1) |