diff options
author | Paul Gilbert | 2017-09-04 15:38:38 -0400 |
---|---|---|
committer | Paul Gilbert | 2017-09-04 15:38:38 -0400 |
commit | 50e7a7eb3f6558c6f9cdb906356bcd70bd31f33d (patch) | |
tree | 3318944e3959bead1948e2d1e5f9cee3da0565b0 /engines/titanic/pet_control/pet_slider.cpp | |
parent | 9a0798f38714eccd57f088af243a167bd1d39bc8 (diff) | |
download | scummvm-rg350-50e7a7eb3f6558c6f9cdb906356bcd70bd31f33d.tar.gz scummvm-rg350-50e7a7eb3f6558c6f9cdb906356bcd70bd31f33d.tar.bz2 scummvm-rg350-50e7a7eb3f6558c6f9cdb906356bcd70bd31f33d.zip |
TITANIC: Cleanup and enum for CPetSound
Diffstat (limited to 'engines/titanic/pet_control/pet_slider.cpp')
-rw-r--r-- | engines/titanic/pet_control/pet_slider.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/titanic/pet_control/pet_slider.cpp b/engines/titanic/pet_control/pet_slider.cpp index eb07012f43..9fb173871f 100644 --- a/engines/titanic/pet_control/pet_slider.cpp +++ b/engines/titanic/pet_control/pet_slider.cpp @@ -89,7 +89,7 @@ double CPetSlider::getOffsetPixels() const { if (minVal == maxVal) return 0.0; - return _sliderOffset / (maxVal - minVal); + return (double)_sliderOffset / (maxVal - minVal); } void CPetSlider::setSliderOffset(double offset) { |