//Added this to net_common.h
#define LAUNCHER_CHALLENGE2 777456  // csdl challenge

//Changed this in zlauncher.cpp
//	ZD_WriteLong(&localbuf, LAUNCHER_CHALLENGE);
ZD_WriteLong(&localbuf, LAUNCHER_CHALLENGE2);



//Replaced this in zlauncher.cpp
				// This comes from the master server
				case		LAUNCHER_CHALLENGE:
					{
						int		msg;
						int		select=0;
						numservers=0;

						while ( (msg = ZD_ReadByte() ) != MST_END)
						{

							
							server_t *sv = &servers[numservers];
							char *address = ZD_ReadString();
							
							// Todo: Add checking here to see if this server
							// is a "select" server or not. The master server 
							// reports this
							 select = ZD_ReadByte();

							int index = topview->InsertItem(0, "", select);

							strcpy (sv->address, address);
							sv->trusted = select;
						
							topview->SetItemData(index, numservers);			
							
							numservers++;
						}

						AfxBeginThread(GetServerInfo, ptr);

						
						break;
					}



//Replaced with this in zlauncher.cpp
				// This comes from the master server
				case		LAUNCHER_CHALLENGE2:
					{
						int		msg;
						int		select=0;
						numservers=0;

						while ( (msg = ZD_ReadByte() ) != MST_END)
						{

							
							server_t *sv = &servers[numservers];
							char address[22];
							int addr[5];
							addr[0] = ZD_ReadByte();
							addr[1] = ZD_ReadByte();
							addr[2] = ZD_ReadByte();
							addr[3] = ZD_ReadByte();
							addr[4] = ZD_ReadShort();
							sprintf( address, "%d.%d.%d.%d:%d", addr[0], addr[1], addr[2], addr[3], addr[4] );
							
							// Todo: Add checking here to see if this server
							// is a "select" server or not. The master server 
							// reports this
							 select = ZD_ReadByte();

							int index = topview->InsertItem(0, "", select);

							strcpy (sv->address, address);
							sv->trusted = select;
						
							topview->SetItemData(index, numservers);			
							
							numservers++;
						}

						AfxBeginThread(GetServerInfo, ptr);

						
						break;
					}


