diff options
author | David Fioramonti | 2018-06-18 19:36:13 -0700 |
---|---|---|
committer | David Fioramonti | 2018-06-19 05:23:59 -0700 |
commit | bfeb2d48e2468134766500eef88d95a71aa12e71 (patch) | |
tree | b018f2e856b054cd50b48d68301eddb787d052a6 | |
parent | 0d8ca3aa0dd4b8dee932f8cf098539b9ed564616 (diff) | |
download | scummvm-rg350-bfeb2d48e2468134766500eef88d95a71aa12e71.tar.gz scummvm-rg350-bfeb2d48e2468134766500eef88d95a71aa12e71.tar.bz2 scummvm-rg350-bfeb2d48e2468134766500eef88d95a71aa12e71.zip |
MOHAWK: MYST: Increment y_pos of observatory day slider faster
Fixes Trac#10572.
The day slider does not go all the way to the bottom (day 31st)
when the down arrow is used to increment the day. This change
increases how much y displacement happens with each change
in the day so that the bottom is reach on day 31st.
This is just a graphical bug and doesn't affect the logic
of the puzzle. The day slider can also be dragged to the bottom
without using the buttons.
-rw-r--r-- | engines/mohawk/myst_stacks/myst.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/mohawk/myst_stacks/myst.cpp b/engines/mohawk/myst_stacks/myst.cpp index 5a64b8fb60..481a6247be 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; |