diff options
author | Strangerke | 2012-03-01 08:00:23 +0100 |
---|---|---|
committer | Strangerke | 2012-04-06 08:22:20 +0200 |
commit | 2eecba4db94794ac1899ca3c5cfceec0c01e2fe6 (patch) | |
tree | 0250a1434d17e3c2c581492aa8bc9503cb9bc578 | |
parent | 06e54aaa674dc6c37aa53e846b28d863b8803dec (diff) | |
download | scummvm-rg350-2eecba4db94794ac1899ca3c5cfceec0c01e2fe6.tar.gz scummvm-rg350-2eecba4db94794ac1899ca3c5cfceec0c01e2fe6.tar.bz2 scummvm-rg350-2eecba4db94794ac1899ca3c5cfceec0c01e2fe6.zip |
MORTEVIELLE: Replace an 1-based array by a 0-based one
-rw-r--r-- | engines/mortevielle/mor.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/engines/mortevielle/mor.cpp b/engines/mortevielle/mor.cpp index d54312a97f..ab2ac1f256 100644 --- a/engines/mortevielle/mor.cpp +++ b/engines/mortevielle/mor.cpp @@ -622,17 +622,15 @@ void chlm(int &per) { * @remarks Originally called 'pendule' */ void drawClock() { - const int cv[3][13] = { - { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, - { 0, 5, 8, 10, 8, 5, 0, -5, -8, -10, -8, -5, 0 }, - { 0, -5, -3, 0, 3, 5, 6, 5, 3, 0, -3, -5, -6 } + const int cv[2][12] = { + { 5, 8, 10, 8, 5, 0, -5, -8, -10, -8, -5, 0 }, + { -5, -3, 0, 3, 5, 6, 5, 3, 0, -3, -5, -6 } }; const int x = 580; const int y = 123; const int rg = 9; int h, co; - hideMouse(); paint_rect(570, 118, 20, 10); @@ -653,7 +651,7 @@ void drawClock() { if (h == 0) h = 12; - g_vm->_screenSurface.drawLine(((uint)x >> 1)*res, y, ((uint)(x + cv[1][h]) >> 1)*res, y + cv[2][h], co); + g_vm->_screenSurface.drawLine(((uint)x >> 1)*res, y, ((uint)(x + cv[0][h - 1]) >> 1)*res, y + cv[1][h - 1], co); showMouse(); g_vm->_screenSurface.putxy(568, 154); |