MCPcopy Create free account
hub / github.com/demoth/jake2 / SearchLocalGames

Method SearchLocalGames

client/src/main/java/jake2/client/Menu.java:2347–2364  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2345 }
2346
2347 private static void SearchLocalGames() {
2348 int i;
2349
2350 m_num_servers = 0;
2351 for (i = 0; i < MAX_LOCAL_SERVERS; i++)
2352 local_server_names[i] = NO_SERVER_STRING;
2353
2354 DrawTextBox(8, 120 - 48, 36, 3);
2355 Print(16 + 16, 120 - 48 + 8, "Searching for local servers, this");
2356 Print(16 + 16, 120 - 48 + 16, "could take up to a minute, so");
2357 Print(16 + 16, 120 - 48 + 24, "please be patient.");
2358
2359 // the text box won't show up unless we do a buffer swap
2360 ClientGlobals.re.EndFrame();
2361
2362 // send out info packets
2363 // CL.PingServers_f.execute(Collections.emptyList());
2364 }
2365
2366 private static void SearchLocalGamesFunc(Object self) {
2367 SearchLocalGames();

Callers 2

SearchLocalGamesFuncMethod · 0.95
JoinServer_MenuInitMethod · 0.95

Calls 3

DrawTextBoxMethod · 0.95
PrintMethod · 0.95
EndFrameMethod · 0.65

Tested by

no test coverage detected