diff options
author | Filippos Karapetis | 2019-05-27 14:35:37 +0300 |
---|---|---|
committer | Filippos Karapetis | 2019-05-27 14:53:41 +0300 |
commit | 87e13a50488fea398885eae8c46e01898a9fe41f (patch) | |
tree | e828c83c90a12d9644a54c5ee77d143b1147f77c /engines/pegasus/neighborhood/mars/spacechase3d.h | |
parent | f5ed07c3e7083059600a37034a3d322e3495008e (diff) | |
download | scummvm-rg350-87e13a50488fea398885eae8c46e01898a9fe41f.tar.gz scummvm-rg350-87e13a50488fea398885eae8c46e01898a9fe41f.tar.bz2 scummvm-rg350-87e13a50488fea398885eae8c46e01898a9fe41f.zip |
PEGASUS: Fix MSVC warnings
- Add a float suffix in convertScreenHToSpaceX/Y
Diffstat (limited to 'engines/pegasus/neighborhood/mars/spacechase3d.h')
-rw-r--r-- | engines/pegasus/neighborhood/mars/spacechase3d.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/pegasus/neighborhood/mars/spacechase3d.h b/engines/pegasus/neighborhood/mars/spacechase3d.h index 455904f6c5..95f7b6c2cf 100644 --- a/engines/pegasus/neighborhood/mars/spacechase3d.h +++ b/engines/pegasus/neighborhood/mars/spacechase3d.h @@ -43,10 +43,10 @@ static const float kTangentFOV = 1.0; (kShuttleWindowMidV - (y) / (z) * (kScreenWidth / (2 * kTangentFOV))) #define convertScreenHToSpaceX(x, d) \ - (((2.0 * kTangentFOV) / kScreenWidth) * ((float)(x) - kShuttleWindowMidH) * (d)) + (((2.0F * kTangentFOV) / kScreenWidth) * ((float)(x) - kShuttleWindowMidH) * (d)) #define convertScreenVToSpaceY(y, d) \ - (((2.0 * kTangentFOV) / kScreenWidth) * ((float)kShuttleWindowMidV - (y)) * (d)) + (((2.0F * kTangentFOV) / kScreenWidth) * ((float)kShuttleWindowMidV - (y)) * (d)) struct Point3D { float x, y, z; |