Hahaha il manquait les ChunkMods dans netprot :finnadie:

This commit is contained in:
MarcEricMartel
2023-12-02 10:04:18 -05:00
parent c44d1453ae
commit 20eb410b08
5 changed files with 76 additions and 3 deletions

View File

@@ -230,6 +230,9 @@ void Server::Run() {
}
for (auto& [key, conn] : m_players) {
/* In */
int deadplayers = 0;
std::vector<char*> lsPck;
Input in; Chat chat; Sync sync;
@@ -254,6 +257,8 @@ void Server::Run() {
}
lsPck.clear();
/* Process */
if (conn->m_nsync) {
if (conn->player->AmIDead()) {
++deadplayers;
@@ -261,6 +266,9 @@ void Server::Run() {
continue;
}
conn->Run(m_world);
/* Out */
conn->sendPacks(m_sock_udp, m_players, timer);
}