aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk
diff options
context:
space:
mode:
Diffstat (limited to 'engines/mohawk')
-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;