Untitled
unknown
plain_text
2 years ago
1.3 kB
7
Indexable
if (last_world_menu - ms_time <= 0) {
active_world_list = "";
active_world_list.clear();
sort(top_active_worlds.begin(), top_active_worlds.end());
reverse(top_active_worlds.begin(), top_active_worlds.end());
top_active_worlds.resize((top_active_worlds.size() >= 24 ? 24 : top_active_worlds.size()));
active_world_list += "\nadd_floater|" + wotw_world + "|ė" + wotw_world + "|0|0.55|3213161471";
for (uint8_t i = 0; i < top_active_worlds.size(); i++) {
int w_cz = 0;
for (ENetPeer* currentPeer = server->peers; currentPeer < &server->peers[server->peerCount]; ++currentPeer) {
if (currentPeer->state != ENET_PEER_STATE_CONNECTED or currentPeer->data == NULL or pInfo(currentPeer)->world != top_active_worlds[i].second) continue;
w_cz++;
}
if (top_active_worlds[i].second == wotw_world) continue; if (top_active_worlds[i].second == "START") continue; if (top_active_worlds[i].second == world_go) continue; if (top_active_worlds[i].second == "ė" + wotw_world) continue;
active_world_list += "\nadd_floater|" + top_active_worlds[i].second + "|ċ " + top_active_worlds[i].second + "|" + to_string(w_cz) + "|" + to_string(0.5 - (i * 0.005)) + "|2613161471";
}
top_active_worlds.clear();
last_world_menu = ms_time + 30000;
}Editor is loading...