aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk/myst_stacks
diff options
context:
space:
mode:
authorBastien Bouclet2018-06-24 17:17:54 +0200
committerGitHub2018-06-24 17:17:54 +0200
commit1d731cb6c0225bd1707521e95d48a19a68be2d64 (patch)
tree2bdf0c69ad8cbe81e66e4aa9418d7ace7046d100 /engines/mohawk/myst_stacks
parentf5e26d22b2023359e1e7ad63fa016e1075a43b79 (diff)
parentbfeb2d48e2468134766500eef88d95a71aa12e71 (diff)
downloadscummvm-rg350-1d731cb6c0225bd1707521e95d48a19a68be2d64.tar.gz
scummvm-rg350-1d731cb6c0225bd1707521e95d48a19a68be2d64.tar.bz2
scummvm-rg350-1d731cb6c0225bd1707521e95d48a19a68be2d64.zip
Merge pull request #1220 from dafioram/mystDaySlider
MOHAWK: MYST: Increment y_pos of observatory day slider faster
Diffstat (limited to 'engines/mohawk/myst_stacks')
-rw-r--r--engines/mohawk/myst_stacks/myst.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/mohawk/myst_stacks/myst.cpp b/engines/mohawk/myst_stacks/myst.cpp
index a467a65e75..0cb0f05a36 100644
--- a/engines/mohawk/myst_stacks/myst.cpp
+++ b/engines/mohawk/myst_stacks/myst.cpp
@@ -1701,7 +1701,11 @@ void Myst::observatoryIncrementDay(int16 increment) {
_vm->getCard()->redrawArea(74);
// Update slider
- _observatoryDaySlider->setPosition(91 + 3 * _state.observatoryDaySetting);
+ // WORKAROUND: Have the day setting increment at 315/100 rather than x3 so that the slider
+ // will reach the bottom spot on day 31st. Only relevant when using the down button and
+ // not dragging the slider. Fixes Trac#10572. The original engine incremented it with x3
+ // and has this bug, but it is less noticeable.
+ _observatoryDaySlider->setPosition(91 + (_state.observatoryDaySetting * 315) / 100 );
_observatoryDaySlider->restoreBackground();
_observatoryDaySlider->drawConditionalDataToScreen(2);
_state.observatoryDaySlider = _observatoryDaySlider->_pos.y;