From cca744f69a9eb079a314c8f39af1faa4e7b1e5a6 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sun, 8 May 2005 21:49:52 +0000 Subject: Comply to our coding conventions svn-id: r17975 --- simon/debug.cpp | 2 +- simon/saveload.cpp | 4 ++-- simon/simon.cpp | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'simon') 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) -- cgit v1.2.3