Skip to content

Commit

Permalink
MORTEVIELLE: More compilation fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- authored and Strangerke committed Apr 6, 2012
1 parent c580ad1 commit 76c0701
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 29 deletions.
4 changes: 0 additions & 4 deletions engines/mortevielle/alert.h
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion engines/mortevielle/ques.cpp
Expand Up @@ -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;

Expand Down
6 changes: 3 additions & 3 deletions engines/mortevielle/var_mor.cpp
Expand Up @@ -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) {
Expand Down
35 changes: 14 additions & 21 deletions engines/mortevielle/var_mor.h
Expand Up @@ -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 {
Expand All @@ -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];
};


Expand Down Expand Up @@ -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];

Expand All @@ -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
Expand Down

0 comments on commit 76c0701

Please sign in to comment.