aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2019-05-27 14:35:37 +0300
committerFilippos Karapetis2019-05-27 14:53:41 +0300
commit87e13a50488fea398885eae8c46e01898a9fe41f (patch)
treee828c83c90a12d9644a54c5ee77d143b1147f77c
parentf5ed07c3e7083059600a37034a3d322e3495008e (diff)
downloadscummvm-rg350-87e13a50488fea398885eae8c46e01898a9fe41f.tar.gz
scummvm-rg350-87e13a50488fea398885eae8c46e01898a9fe41f.tar.bz2
scummvm-rg350-87e13a50488fea398885eae8c46e01898a9fe41f.zip
PEGASUS: Fix MSVC warnings
- Add a float suffix in convertScreenHToSpaceX/Y
-rw-r--r--engines/pegasus/neighborhood/mars/spacechase3d.h4
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;