Skip to content

Commit

Permalink
MORTEVIELLE: Double check all "in []" statements, fix a couple of errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Strangerke committed Apr 6, 2012
1 parent 97de41b commit 9751829
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion engines/mortevielle/mor.cpp
Expand Up @@ -371,7 +371,7 @@ void repon(int f, int m) {
}
}
}
if ((f >= 6) && (f <= 9)) {
if ((f == 6) || (f == 9)) {
if (f == 6)
i = 4;
else
Expand Down Expand Up @@ -615,6 +615,10 @@ void chlm(int &per) {
if (per == 2) per = 128;
}

/**
* Engine function - Draw Clock
* @remarks Originally called 'pendule'
*/
void drawClock() {
const int cv[3][13] = {
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
Expand Down
2 changes: 1 addition & 1 deletion engines/mortevielle/parole.cpp
Expand Up @@ -36,7 +36,7 @@ void spfrac(int wor) {
c3.rep = (uint)wor >> 12;
if ((typlec == 0) && (c3.code != 9))
if (((c3.code > 4) && (c3.val != 20) && ((c3.rep != 3) && (c3.rep != 6) && (c3.rep != 9)) ||
((c3.code < 5) && ((c3.rep != 19) && (c3.rep != 22) && (c3.rep != 4) && (c3.rep != 9))))) {
((c3.code < 5) && ((c3.val != 19) && (c3.val != 22) && (c3.rep != 4) && (c3.rep != 9))))) {
++c3.rep;
}

Expand Down

0 comments on commit 9751829

Please sign in to comment.