diff options
-rw-r--r-- | engines/zvision/graphics/render_table.cpp | 2 | ||||
-rw-r--r-- | engines/zvision/scripting/controls/safe_control.cpp | 2 |
2 files changed, 2 insertions, 2 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) { diff --git a/engines/zvision/scripting/controls/safe_control.cpp b/engines/zvision/scripting/controls/safe_control.cpp index de1ece5b19..66ab53085f 100644 --- a/engines/zvision/scripting/controls/safe_control.cpp +++ b/engines/zvision/scripting/controls/safe_control.cpp @@ -181,7 +181,7 @@ bool SafeControl::onMouseUp(const Common::Point &screenSpacePos, const Common::P Common::Point tmp = backgroundImageSpacePos - _center; - float dd = atan2(tmp.x, tmp.y) * 57.29578; + float dd = atan2((float)tmp.x, (float)tmp.y) * 57.29578; int16 dp_state = 360 / _statesCount; |