SQC-15_online #1

Merged
memartel_loc merged 349 commits from SQC-15_online into master 2023-12-10 17:41:26 -05:00
Showing only changes of commit 58c97587bf - Show all commits

View File

@ -327,8 +327,8 @@ void Server::Run() {
sendPackTo<BulletAdd>(m_sock_udp, bull, &m_buf, conn->getAddr());
delete bull;
}
netbull.clear();
for (auto& bull : bullets) {
ChunkMod* cmod = nullptr;
if (bull->Update(m_world, (1. / 60.), 20, m_players, &cmod)) {
@ -337,7 +337,6 @@ void Server::Run() {
outbox_bullets.emplace_back(std::move(bull));
}
}
netbull.clear();
for (auto& chat : chatlog) {
Log(chat->mess, false, false);
@ -354,9 +353,9 @@ void Server::Run() {
}
chunkdiffs.clear();
for (auto& bull : outbox_bullets)
delete bull;
outbox_bullets.clear();
//for (auto& bull : outbox_bullets)
// delete bull;
//outbox_bullets.clear();
}
Chat end;