aboutsummaryrefslogtreecommitdiff
path: root/engines/mortevielle
diff options
context:
space:
mode:
authorEugene Sandulenko2011-12-29 21:03:56 +0000
committerStrangerke2012-04-06 08:18:44 +0200
commit38b1cc473988db5f7f95e1a1c464844052171ca9 (patch)
tree6bfb80939627f1da0cbc94a03f26b6511d722d12 /engines/mortevielle
parent34f9d3024549c1c9543a556ae423d88c1cc6bc7e (diff)
downloadscummvm-rg350-38b1cc473988db5f7f95e1a1c464844052171ca9.tar.gz
scummvm-rg350-38b1cc473988db5f7f95e1a1c464844052171ca9.tar.bz2
scummvm-rg350-38b1cc473988db5f7f95e1a1c464844052171ca9.zip
MORTEVIELLE: More compilation fixes
Diffstat (limited to 'engines/mortevielle')
-rw-r--r--engines/mortevielle/alert.h4
-rw-r--r--engines/mortevielle/ques.cpp2
-rw-r--r--engines/mortevielle/var_mor.cpp6
-rw-r--r--engines/mortevielle/var_mor.h35
4 files changed, 18 insertions, 29 deletions
diff --git a/engines/mortevielle/alert.h b/engines/mortevielle/alert.h
index 6419e814cf..4c53b14416 100644
--- a/engines/mortevielle/alert.h
+++ b/engines/mortevielle/alert.h
@@ -33,10 +33,6 @@
namespace Mortevielle {
int do_alert(Common::String str_, int n);
-static void decod(Common::String s, int &nbc, int &nbl, int &col, Common::String &c, Common::String &cs);
-static void posit(int ji, int &coldep, int &esp);
-static void fait_boite(int lidep, int nli, int tx);
-static void fait_choix(Common::String c, int &coldep, int &nbcase, array<1, 2, varying_string<3> > &s, int &esp);
int do_alert(Common::String str_, int n);
} // End of namespace Mortevielle
diff --git a/engines/mortevielle/ques.cpp b/engines/mortevielle/ques.cpp
index 50490dfd27..d52d89e53e 100644
--- a/engines/mortevielle/ques.cpp
+++ b/engines/mortevielle/ques.cpp
@@ -41,7 +41,7 @@ namespace Mortevielle {
int rep, prem, der;
char st[1410];
char key;
- mult_rect coor;
+ rectangle coor[max_rect];
array<1, 14, Common::String> chaines;
int compte;
diff --git a/engines/mortevielle/var_mor.cpp b/engines/mortevielle/var_mor.cpp
index 25789e29b3..34c1607cbc 100644
--- a/engines/mortevielle/var_mor.cpp
+++ b/engines/mortevielle/var_mor.cpp
@@ -97,9 +97,9 @@ void hirs() {
/* procedure affput(Chx,Gd,x,y,coul,char:int); external 'c:\mc\divaf.com'; */
-void affcar(int gd, int x, int y, int coul, int char) {
- if (res == 1) affput(1, gd, ((cardinal)x >> 1), y, coul, char);
- else affput(1, gd, x, y, coul, char);
+void affcar(int gd, int x, int y, int coul, int chr) {
+ if (res == 1) affput(1, gd, ((cardinal)x >> 1), y, coul, chr);
+ else affput(1, gd, x, y, coul, chr);
}
void putpix(int gd, int x, int y, int coul) {
diff --git a/engines/mortevielle/var_mor.h b/engines/mortevielle/var_mor.h
index 44a78e1529..f912789b34 100644
--- a/engines/mortevielle/var_mor.h
+++ b/engines/mortevielle/var_mor.h
@@ -219,9 +219,6 @@ struct ind {
int indis;
byte point;
};
-typedef ind[maxtd + 1] tabind;
-
-typedef matrix<1, 7, 0, 24, byte> tab_mlieu;
typedef int word1;
struct chariot {
@@ -236,18 +233,14 @@ struct doublet {
byte x, y;
};
-typedef doublet[16] tabdb;
-
struct rectangle {
int x1, x2, y1, y2;
bool etat;
};
-typedef rectangle[max_rect] mult_rect;
-
struct pattern {
byte tay, tax;
- matrix<1, max_patt, 1, max_patt, byte> des;
+ byte des[max_patt+1][max_patt+1];
};
@@ -376,34 +369,34 @@ Common::String al_mess,
int invt[8];
int nbrep[8];
int nbrepm[8];
-int disc[8]
+int disc[8];
int msg[5];
int depl[7];
-array<1, 8, varying_string<22> > inv;
-array<1, 7, varying_string<23> > dep;
-array<1, 21, varying_string<10> > act;
-array<1, 5, varying_string<11> > self_;
-array<1, 8, varying_string<5> > dis;
+Common::String inv[9];
+Common::String dep[8];
+Common::String act[22];
+Common::String self_[6];
+Common::String dis[9];
char touv[7];
sav_chaine s, s1;
byte bufcha[391];
-matrix<1, 6, 0, 23, byte> lettres;
+byte lettres[7][24];
byte palher[16];
int t_mot[maxti + 1];
int tay_tchar;
-tabind t_rec;
-file<ind> sauv_t;
-untyped_file fibyte;
-tab_mlieu v_lieu;
+ind t_rec[maxtd + 1];
+//file<ind> sauv_t;
+//untyped_file fibyte;
+byte v_lieu[8][25];
int l[108];
int tbi[256];
chariot c1, c2, c3;
float addfix;
t_pcga palsav[91];
-tabdb tabpal[91];
+doublet tabpal[91][16];
t_pcga palcga[91];
pattern tpt[15];
@@ -412,7 +405,7 @@ pattern tpt[15];
/*---------------------------------------------------------------------------*/
void hirs();
-void affcar(int gd, int x, int y, int coul, int char);
+void affcar(int gd, int x, int y, int coul, int chr);
void putpix(int gd, int x, int y, int coul);
} // End of namespace Mortevielle