Skip to content

Commit

Permalink
MORTEVIELLE: use bool instead of boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
Strangerke committed Apr 6, 2012
1 parent 25f08ad commit 004935b
Show file tree
Hide file tree
Showing 18 changed files with 39 additions and 39 deletions.
6 changes: 3 additions & 3 deletions engines/mortevielle/actions.cpp
Expand Up @@ -469,7 +469,7 @@ void taller() {

/* overlay */ void tmettre() {
int quel;
boolean entre;
bool entre;
phrase st;
Common::String str_;
int i, tay;
Expand Down Expand Up @@ -979,13 +979,13 @@ void taller() {
/* overlay */ void tparler()

{
array<1, 46, boolean> te;
array<1, 46, bool> te;
int ix, cy, cx, max, haz, suj, co, lig, icm,
i, tay, choi, x, y, c;
char tou;
array<1, 46, varying_string<40> > lib;
phrase st;
boolean f;
bool f;



Expand Down
2 changes: 1 addition & 1 deletion engines/mortevielle/alert.cpp
Expand Up @@ -128,7 +128,7 @@ int do_alert(Common::String str_, int n) {
char c, dumi;
array<1, 2, varying_string<3> > s;
int cx, cy, cd, nbcol, nblig;
boolean touch, newaff, test, test1, test2, test3, dum;
bool touch, newaff, test, test1, test2, test3, dum;
Common::String cas;


Expand Down
4 changes: 2 additions & 2 deletions engines/mortevielle/level15.cpp
Expand Up @@ -40,10 +40,10 @@ void copcha() {
} while (!(i == acha + 390));
}

boolean dans_rect(rectangle r) {
bool dans_rect(rectangle r) {
int x, y, c;

boolean dans_rect_result;
bool dans_rect_result;
read_pos_mouse(x, y, c);
if ((x > r.x1) &&
(x < r.x2) &&
Expand Down
2 changes: 1 addition & 1 deletion engines/mortevielle/menu.cpp
Expand Up @@ -311,7 +311,7 @@ void erase_menu() {

void mdn() {
int x, y, c, a, ix;
boolean tes;
bool tes;

/* debug('mdn'); */
if (! active_menu) return;
Expand Down
8 changes: 4 additions & 4 deletions engines/mortevielle/mor.cpp
Expand Up @@ -369,7 +369,7 @@ void modobj(int m) {
menu_disable(invt[8]);
}

void modobj2(int m, boolean t1, boolean t2) {
void modobj2(int m, bool t1, bool t2) {
phrase str_;
Common::String strp;
int i, tay;
Expand Down Expand Up @@ -526,7 +526,7 @@ void affper(int per) {
}

/* overlay */ void choix(int min, int max, int &per) {
boolean i;
bool i;
int haz, cx, cy, cz;
long_int per2, cz2;

Expand Down Expand Up @@ -841,7 +841,7 @@ void debloc(int l) {

/* overlay */ void quelq15(int &per) {
int cx;
boolean test;
bool test;


/* debug('o1 quelq15'); */
Expand Down Expand Up @@ -1254,7 +1254,7 @@ void aniof(int ouf, int num) {
}

void musique(int so) {
boolean i;
bool i;
int haz;
/* dep: array[1..5] of long_int;*/

Expand Down
2 changes: 1 addition & 1 deletion engines/mortevielle/mor.h
Expand Up @@ -58,7 +58,7 @@ void conv(int x, int &y);
/* NIVEAU 12 */
void okpas();
void modobj(int m);
void modobj2(int m, boolean t1, boolean t2);
void modobj2(int m, bool t1, bool t2);
void repon(int f, int m);
void f3f8();
void t5(int cx);
Expand Down
12 changes: 6 additions & 6 deletions engines/mortevielle/mor2.cpp
Expand Up @@ -178,8 +178,8 @@ void afdes(int ad) {
okdes = false;
}

void tkey1(boolean d) {
boolean quest;
void tkey1(bool d) {
bool quest;
int x, y, c;
int key;

Expand Down Expand Up @@ -327,7 +327,7 @@ void st4(int ob) {
}
}

void cherjer(int ob, boolean &d) {
void cherjer(int ob, bool &d) {
int cx;

d = false;
Expand Down Expand Up @@ -455,7 +455,7 @@ void ajjer(int ob) {

void t1sama() { /* On entre dans le manoir */
int j, h, m;
boolean d;
bool d;

calch(j, h, m);
if ((h < 5) && (s.mlieu > 18)) {
Expand Down Expand Up @@ -601,7 +601,7 @@ void tsuiv() {
}

void tfleche() {
boolean qust;
bool qust;
char touch;
int dummy, cd, xmo, ymo;

Expand Down Expand Up @@ -728,7 +728,7 @@ void rechai(int &ch) {
}

void t23coul(int &l) {
boolean d;
bool d;

cherjer(143, d);
l = 14;
Expand Down
2 changes: 1 addition & 1 deletion engines/mortevielle/mor2.h
Expand Up @@ -46,7 +46,7 @@ void atf3f8(int &key);
void tperd();
void tsort();
void st4(int ob);
void cherjer(int ob, boolean &d);
void cherjer(int ob, bool &d);
void st1sama();
void modinv();
void sparl(long_int adr, long_int rep);
Expand Down
2 changes: 1 addition & 1 deletion engines/mortevielle/mort.cpp
Expand Up @@ -53,7 +53,7 @@

namespace Mortevielle {

void divers(int np, boolean b) {
void divers(int np, bool b) {
teskbd();
do {
parole(np, 0, 0);
Expand Down
10 changes: 5 additions & 5 deletions engines/mortevielle/mouse.cpp
Expand Up @@ -32,7 +32,7 @@ namespace Mortevielle {
const int m_arrow = 0;
const int m_point_hand = 1;

boolean int_m,
bool int_m,
clic;

int m_show,
Expand Down Expand Up @@ -88,7 +88,7 @@ end; */

void hide_mouse() {
int i, j, k, ps, ds;
boolean imp;
bool imp;

mouse_shwn = pred(int, mouse_shwn);
if (mouse_shwn == 0) {
Expand Down Expand Up @@ -177,7 +177,7 @@ void hide_mouse() {
void show_mouse() {
int i, j, k, l,
ps, ds;
boolean imp;
bool imp;
char c;

mouse_shwn = mouse_shwn + 1;
Expand Down Expand Up @@ -311,8 +311,8 @@ void read_pos_mouse(int &x, int &y, int &c) {
}
}

void mov_mouse(boolean &funct, char &key) {
boolean p_key;
void mov_mouse(bool &funct, char &key) {
bool p_key;
char in1, in2;
int x, y, cx, cy, cd;
registres reg;
Expand Down
2 changes: 1 addition & 1 deletion engines/mortevielle/mouse.h
Expand Up @@ -37,7 +37,7 @@ void hide_mouse();
void show_mouse();
void pos_mouse(int x, int y);
void read_pos_mouse(int &x, int &y, int &c);
void mov_mouse(boolean &funct, char &key);
void mov_mouse(bool &funct, char &key);

} // End of namespace Mortevielle
#endif
4 changes: 2 additions & 2 deletions engines/mortevielle/outtext.cpp
Expand Up @@ -57,7 +57,7 @@ const byte tab31[32]= {

void deline(int num , phrase &l , int &tl);

static void cinq_huit(char &c, int &ind, byte &pt, boolean &the_end) {
static void cinq_huit(char &c, int &ind, byte &pt, bool &the_end) {
const unsigned char rap[32] = {
',', ':', '@', '!', '?', '-', '\207',
'\240', '\205', '\203', '\202', '\212', '\210', '/',
Expand Down Expand Up @@ -153,7 +153,7 @@ static int l_motsuiv(int p, phrase &ch, int &tab) {
}

void afftex(phrase ch, int x, int y, int dx, int dy, int typ) {
boolean the_end;
bool the_end;
char touch;
int xf, yf;
int xc, yc;
Expand Down
2 changes: 1 addition & 1 deletion engines/mortevielle/outtext.h
Expand Up @@ -30,7 +30,7 @@

namespace Mortevielle {

static void cinq_huit(char &c, int &ind, byte &pt, boolean &the_end);
static void cinq_huit(char &c, int &ind, byte &pt, bool &the_end);
void deline(int num , phrase &l , int &tl);
static int l_motsuiv(int p, phrase &ch, int &tab);
void afftex(phrase ch, int x, int y, int dx, int dy, int typ);
Expand Down
4 changes: 2 additions & 2 deletions engines/mortevielle/ovd1.cpp
Expand Up @@ -65,7 +65,7 @@ void ani50() {
end;
end;*/

/* overlay */ void aff50(boolean c) {
/* overlay */ void aff50(bool c) {
int k;

caff = 50;
Expand Down Expand Up @@ -276,7 +276,7 @@ void ani50() {
/* overlay */ void music() {
untyped_file fic;
int k;
boolean fin;
bool fin;
char ch;
float x, y;

Expand Down
2 changes: 1 addition & 1 deletion engines/mortevielle/ovd1.h
Expand Up @@ -33,7 +33,7 @@ namespace Mortevielle {
void dem2();
void ani50();
//void apzuul();
void aff50(boolean c);
void aff50(bool c);
void init_menu();
void charpal();
void chartex();
Expand Down
2 changes: 1 addition & 1 deletion engines/mortevielle/prog.cpp
Expand Up @@ -243,7 +243,7 @@ void tecran() {
const int lim = 20000;
int temps;
char inkey;
boolean oo, funct;
bool oo, funct;

clsf3();
oo = false;
Expand Down
6 changes: 3 additions & 3 deletions engines/mortevielle/ques.cpp
Expand Up @@ -30,7 +30,7 @@

namespace Mortevielle {

/* overlay */ boolean ques() {
/* overlay */ bool ques() {
const array<1, 10, int> ta
= {{
511, 516, 524, 531, 545,
Expand All @@ -40,7 +40,7 @@ namespace Mortevielle {
const array<1, 10, int> ok
= {{ 4, 7, 1, 6, 4, 4, 2, 5, 3, 1 }};

boolean q, func, test;
bool q, func, test;
int i, j, k, y, memk;
int tay , tmax;
int rep, prem, der;
Expand All @@ -51,7 +51,7 @@ namespace Mortevielle {
int compte;


boolean ques_result;
bool ques_result;
test = false;
i = 0;
compte = 0;
Expand Down
6 changes: 3 additions & 3 deletions engines/mortevielle/var_mor.cpp
Expand Up @@ -208,7 +208,7 @@ struct sav_chaine {
char sjer[31];
int mlieu, iboul, ibag, icave, ivier, ipuit;
int derobj, iloic, icryp;
boolean ipre;
bool ipre;
char heure;
};
struct registres {
Expand Down Expand Up @@ -238,7 +238,7 @@ struct doublet {
typedef array<1, 16, doublet> tabdb;
struct rectangle {
int x1, x2, y1, y2;
boolean etat;
bool etat;
};

typedef array<1, max_rect, rectangle> mult_rect;
Expand All @@ -263,7 +263,7 @@ struct t_pcga {
/*------------------------------ VARIABLES ------------------------------*/
/*---------------------------------------------------------------------------*/

boolean blo,
bool blo,
bh1,
bf1,
bh2,
Expand Down

0 comments on commit 004935b

Please sign in to comment.