Skip to content

Commit

Permalink
MORTEVIELLE: Replace an 1-based array by a 0-based one
Browse files Browse the repository at this point in the history
  • Loading branch information
Strangerke committed Apr 6, 2012
1 parent 7ebfcb1 commit f2e8b4d
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions engines/mortevielle/mor.cpp
Expand Up @@ -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);
Expand All @@ -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);

Expand Down

0 comments on commit f2e8b4d

Please sign in to comment.