diff options
| author | Sven Hesse | 2006-06-06 15:43:44 +0000 |
|---|---|---|
| committer | Sven Hesse | 2006-06-06 15:43:44 +0000 |
| commit | bf86b9b022186f8530a3430f6549c4f00350f12c (patch) | |
| tree | 07ae31b79f75b38ccc3911d381110d3bfaf7b9df /engines/gob/draw_v2.cpp | |
| parent | 9a46b6047d67b10f47541030ab5b29f0c7449d50 (diff) | |
| download | scummvm-rg350-bf86b9b022186f8530a3430f6549c4f00350f12c.tar.gz scummvm-rg350-bf86b9b022186f8530a3430f6549c4f00350f12c.tar.bz2 scummvm-rg350-bf86b9b022186f8530a3430f6549c4f00350f12c.zip | |
Two segfault and several coding style related fixes
svn-id: r22954
Diffstat (limited to 'engines/gob/draw_v2.cpp')
| -rw-r--r-- | engines/gob/draw_v2.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/gob/draw_v2.cpp b/engines/gob/draw_v2.cpp index 6f600e127c..4e759e024d 100644 --- a/engines/gob/draw_v2.cpp +++ b/engines/gob/draw_v2.cpp @@ -144,7 +144,7 @@ void Draw_v2::printText(void) { if ((_vm->_game->_totFileData[0x29] < 0x32) && (*ptr2 > 3) && (*ptr2 < 32)) *ptr2 = 32; - switch(*ptr2) { + switch (*ptr2) { case 1: break; @@ -202,7 +202,7 @@ void Draw_v2::printText(void) { _backColor = 0; _transparency = 1; - while(true) { + while (true) { if ((*ptr >= 1) && ((*ptr <= 7) || (*ptr == 10)) && (strPos != 0)) { str[MAX(strPos, strPos2)] = 0; strPosBak = strPos; @@ -352,7 +352,7 @@ void Draw_v2::printText(void) { if (cmd == 0) { val = READ_LE_UINT16(ptr2 + 18) * 4; sprintf(buf, "%d", VAR_OFFSET(val)); - } else if(cmd == 1) { + } else if (cmd == 1) { val = READ_LE_UINT16(ptr2 + 18) * 4; strcpy(buf, _vm->_global->_inter_variables + val); } else { |
