mirror of https://github.com/OpenTTD/OpenTTD.git
Compare commits
2 Commits
78dac32d5d
...
0b2819ec83
Author | SHA1 | Date |
---|---|---|
Peter Nelson | 0b2819ec83 | |
Peter Nelson | a66b4f33d1 |
|
@ -839,7 +839,7 @@ public:
|
||||||
*/
|
*/
|
||||||
void ScrollTowards(size_type position)
|
void ScrollTowards(size_type position)
|
||||||
{
|
{
|
||||||
if (position < this->GetPosition()) {
|
if (position <= this->GetPosition()) {
|
||||||
/* scroll up to the item */
|
/* scroll up to the item */
|
||||||
this->SetPosition(position);
|
this->SetPosition(position);
|
||||||
} else if (position >= this->GetPosition() + this->GetCapacity()) {
|
} else if (position >= this->GetPosition() + this->GetCapacity()) {
|
||||||
|
|
Loading…
Reference in New Issue