diff options
Diffstat (limited to 'engines/cruise/perso.h')
-rw-r--r-- | engines/cruise/perso.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/engines/cruise/perso.h b/engines/cruise/perso.h index 4f336a1849..d1cb9b2f98 100644 --- a/engines/cruise/perso.h +++ b/engines/cruise/perso.h @@ -33,11 +33,16 @@ enum { NUM_PERSONS = 10 }; +struct point { + int16 x; + int16 y; +}; + struct persoStruct { int16 inc_droite; // 2 int16 inc_droite0; // 2 int16 inc_chemin; // 2 - int16 coordinates[400][2]; // 1600 + point coordinates[400]; // 1600 int16 solution[NUM_NODES + 3][2]; //((20+3)*2*2) int16 inc_jo1; // 2 int16 inc_jo2; // 2 @@ -48,6 +53,7 @@ struct persoStruct { extern persoStruct *persoTable[NUM_PERSONS]; extern int16 computedVar14; +int cor_droite(int x1, int y1, int x2, int y2, point* outputTable); void freePerso(int persoIdx); void freeCTP(void); void affiche_chemin(int16 persoIdx, int16 * returnVar); |