Changeset - r808:551e52b00f0f
[Not reviewed]
master
0 1 0
bjarni - 19 years ago 2004-12-26 22:09:34
bjarni@openttd.org
(svn r1279) Fixed the scrollbar in the network gui(server list). It now updates when scrolling (HackyKid)
1 file changed with 5 insertions and 0 deletions:
0 comments (0 inline, 0 general)
network_gui.c
Show inline comments
 
@@ -110,8 +110,13 @@ static void NetworkGameWindowWndProc(Win
 
		{ // draw list of games
 
			uint16 y = NET_PRC__OFFSET_TOP_WIDGET + 3;
 
			int32 n = 0;
 
			int32 pos=w->vscroll.pos;
 
			char servername[NETWORK_NAME_LENGTH];
 
			const NetworkGameList *cur_item = _network_game_list;
 
			while (pos>0 && cur_item != NULL) {
 
				--pos;
 
				cur_item = cur_item->next;
 
			}
 
			while (cur_item != NULL) {
 
				bool compatible = (strncmp(cur_item->info.server_revision, _openttd_revision, NETWORK_REVISION_LENGTH - 1) == 0);
 
				if (strncmp(cur_item->info.server_revision, NOREV_STRING, sizeof(cur_item->info.server_revision)) == 0)
0 comments (0 inline, 0 general)