diff options
author | Eugene Sandulenko | 2011-12-26 18:18:34 +0000 |
---|---|---|
committer | Strangerke | 2012-04-06 08:18:20 +0200 |
commit | b36a336203e0f18278d72ded1974a0ddf911b783 (patch) | |
tree | b6f8b8028fbafad1cda0e67fdfe410d3dbe9936e /engines/mortevielle/droite.cpp | |
parent | 321b86339fcad0b18f1c709692420b63bc4497ee (diff) | |
download | scummvm-rg350-b36a336203e0f18278d72ded1974a0ddf911b783.tar.gz scummvm-rg350-b36a336203e0f18278d72ded1974a0ddf911b783.tar.bz2 scummvm-rg350-b36a336203e0f18278d72ded1974a0ddf911b783.zip |
MORTEVIELLE: real -> float
Diffstat (limited to 'engines/mortevielle/droite.cpp')
-rw-r--r-- | engines/mortevielle/droite.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/mortevielle/droite.cpp b/engines/mortevielle/droite.cpp index 0ad212dec1..20899ced8b 100644 --- a/engines/mortevielle/droite.cpp +++ b/engines/mortevielle/droite.cpp @@ -1,7 +1,7 @@ void droite(int x, int y, int xx, int yy, int coul) { int step, i; - real a, b; - real xr, yr, xro, yro; + float a, b; + float xr, yr, xro, yro; xr = x; yr = y; @@ -9,7 +9,7 @@ void droite(int x, int y, int xx, int yy, int coul) { yro = yy; /*writeln(le_file,'(',x:4,',',y:4,') ==> (',xx:4,',',yy:4,')');*/ if (abs(y - yy) > abs(x - xx)) { - a = (real)((x - xx)) / (y - yy); + a = (float)((x - xx)) / (y - yy); b = (yr * xro - yro * xr) / (y - yy); i = y; if (y > yy) step = -1; @@ -20,7 +20,7 @@ void droite(int x, int y, int xx, int yy, int coul) { } while (!(i == yy)); /*writeln(le_file,'X == ',a:3:3,' * Y + ',b:3:3);*/ } else { - a = (real)((y - yy)) / (x - xx); + a = (float)((y - yy)) / (x - xx); b = ((yro * xr) - (yr * xro)) / (x - xx); i = x; if (x > xx) step = -1; |