Remove the dead code.

This commit is contained in:
MarcEricMartel
2023-12-16 16:13:20 -05:00
parent 4df53a5f9b
commit 678776d6e6
4 changed files with 5 additions and 112 deletions

View File

@@ -282,11 +282,6 @@ void Server::Run() {
/* Process */
if (conn->m_nsync) {
/*if (conn->player->m_hit) {
std::string str = conn->player->GetUsername();
str = str.append(" has been hit: ").append(std::to_string(conn->player->GetHP()));
Log(str, false, false);
}*/
Timestamp tstamp = conn->Run(m_world);
@@ -308,6 +303,7 @@ void Server::Run() {
++deadplayers;
conn->player->Eulogy = true;
conn->m_nsync = false;
}
else {
for (auto& chmo : conn->ChunkDiffs)
@@ -383,7 +379,7 @@ void Server::Run() {
for (auto bull = bullets.begin(); bull != bullets.end(); ++bull) {
ChunkMod* cmod = nullptr;
Bullet* bullet = *bull;
if (bullet->Update(m_world, (1. / 60.), 1, m_players, &cmod)) {
if (bullet->Update(m_world, (1. / 60.), 50, m_players, &cmod)) {
if (cmod)
chunkdiffs.emplace_back(cmod);
bullit.push_back(bull);