(svn r17367) -Codechange: make the autoreplace, bridge and build vehicle GUIs use the scrollbar wrappers

This commit is contained in:
rubidium
2009-09-02 07:17:15 +00:00
parent 4b9b858127
commit e69e3378b0
4 changed files with 38 additions and 37 deletions

View File

@@ -264,6 +264,7 @@ public:
*/
void UpdateCapacity(int difference)
{
if (difference == 0) return;
this->SetCapacity(this->cap + difference);
}
@@ -285,6 +286,7 @@ public:
*/
void UpdatePosition(int difference)
{
if (difference == 0) return;
this->SetPosition(Clamp(this->pos + difference, 0, this->count - this->cap));
}
};