retour vers le futur

This commit is contained in:
Franck Wajsburt 2002-06-28 14:37:30 +00:00
parent 860cd7fd76
commit 4afe5c3dcd
1 changed files with 10 additions and 10 deletions

View File

@ -393,24 +393,24 @@ int main (int ac, char *av[])
} }
if ((IsRdsObstacle(ScanRec) & OBSTACLE_NORTH) == 0) if ((IsRdsObstacle(ScanRec) & OBSTACLE_NORTH) == 0)
{ {
NewRec->DY += Pitch; NewRec->DY += Pitch-RDS_LAMBDA; /* les fils font 4 lambdas pas 5*/
} }
else else
if ((IsRdsObstacle(ScanRec) & OBSTACLE_EAST) == 0) if ((IsRdsObstacle(ScanRec) & OBSTACLE_EAST) == 0)
{ {
NewRec->DX += Pitch; NewRec->DX += Pitch-RDS_LAMBDA;
NewRec->X -= Pitch; NewRec->X -= Pitch-RDS_LAMBDA;
} }
else else
if ((IsRdsObstacle(ScanRec) & OBSTACLE_SOUTH) == 0) if ((IsRdsObstacle(ScanRec) & OBSTACLE_SOUTH) == 0)
{ {
NewRec->DY += Pitch; NewRec->DY += Pitch-RDS_LAMBDA;
NewRec->Y -= Pitch; NewRec->Y -= Pitch-RDS_LAMBDA;
} }
else else
if ((IsRdsObstacle(ScanRec) & OBSTACLE_WEST) == 0) if ((IsRdsObstacle(ScanRec) & OBSTACLE_WEST) == 0)
{ {
NewRec->DX += Pitch; NewRec->DX += Pitch-RDS_LAMBDA;
} }
else else
{ {
@ -473,13 +473,13 @@ int main (int ac, char *av[])
int SHRINK_BOT, SHRINK_TOP; int SHRINK_BOT, SHRINK_TOP;
if (ScanRec->Y % Pitch == 0) if (ScanRec->Y % Pitch == 0)
{ {
SHRINK_BOT = 4; SHRINK_BOT = 3;
SHRINK_TOP = 1; SHRINK_TOP = 1;
} }
else else
{ {
SHRINK_BOT = 1; SHRINK_BOT = 1;
SHRINK_TOP = 4; SHRINK_TOP = 3;
} }
addphseg (PhFig, MbkLayer, addphseg (PhFig, MbkLayer,
(SCALE_X * ScanRec->DX) / RDS_UNIT, (SCALE_X * ScanRec->DX) / RDS_UNIT,
@ -501,13 +501,13 @@ int main (int ac, char *av[])
int SHRINK_RIG, SHRINK_LEF; int SHRINK_RIG, SHRINK_LEF;
if (ScanRec->X % Pitch == 0) if (ScanRec->X % Pitch == 0)
{ {
SHRINK_RIG = 4; SHRINK_RIG = 3;
SHRINK_LEF = 1; SHRINK_LEF = 1;
} }
else else
{ {
SHRINK_RIG = 1; SHRINK_RIG = 1;
SHRINK_LEF = 4; SHRINK_LEF = 3;
} }
addphseg (PhFig, MbkLayer, addphseg (PhFig, MbkLayer,
(SCALE_X * ScanRec->DY) / RDS_UNIT, (SCALE_X * ScanRec->DY) / RDS_UNIT,