Remove the dead code.
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user