mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-19 12:39:11 +00:00
(svn r14816) -Fix: signed/unsigned warnings (MSVC)
This commit is contained in:
@@ -629,7 +629,7 @@ public:
|
||||
case WKC_PAGEDOWN:
|
||||
/* scroll down a page */
|
||||
if (this->server == NULL) return ES_HANDLED;
|
||||
this->list_pos = (this->list_pos + this->vscroll.cap > this->servers.Length() - 1) ? this->servers.Length() - 1 : this->list_pos + this->vscroll.cap;
|
||||
this->list_pos = min(this->list_pos + this->vscroll.cap, (int)this->servers.Length() - 1);
|
||||
break;
|
||||
case WKC_HOME:
|
||||
/* jump to beginning */
|
||||
|
Reference in New Issue
Block a user