aboutsummaryrefslogtreecommitdiff
path: root/engines/zvision/graphics/render_table.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2014-12-03 00:53:36 +0200
committerFilippos Karapetis2014-12-03 00:53:36 +0200
commit61f654e4eee90d761c06583a67dc9631db9d0d29 (patch)
treeaaedd1e8739dbb4b89fb19028f9535514deb3e94 /engines/zvision/graphics/render_table.cpp
parent11d41ace02ce84ab40de2ae315a106950579e2bd (diff)
downloadscummvm-rg350-61f654e4eee90d761c06583a67dc9631db9d0d29.tar.gz
scummvm-rg350-61f654e4eee90d761c06583a67dc9631db9d0d29.tar.bz2
scummvm-rg350-61f654e4eee90d761c06583a67dc9631db9d0d29.zip
ZVISION: Explicitly define which version of atan2() to use
This is needed by MSVC
Diffstat (limited to 'engines/zvision/graphics/render_table.cpp')
-rw-r--r--engines/zvision/graphics/render_table.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/zvision/graphics/render_table.cpp b/engines/zvision/graphics/render_table.cpp
index 629cbde3cf..5500b50ba8 100644
--- a/engines/zvision/graphics/render_table.cpp
+++ b/engines/zvision/graphics/render_table.cpp
@@ -200,7 +200,7 @@ void RenderTable::generateTiltLookupTable() {
float fovInRadians = (_tiltOptions.fieldOfView * M_PI / 180.0f);
float cylinderRadius = halfWidth / tan(fovInRadians);
- _tiltOptions.gap = cylinderRadius * atan2(halfHeight / cylinderRadius, 1.0) * _tiltOptions.linearScale;
+ _tiltOptions.gap = cylinderRadius * atan2((float)(halfHeight / cylinderRadius), 1.0f) * _tiltOptions.linearScale;
for (uint y = 0; y < _numRows; ++y) {