finetuning gameplay and disconnect fix

This commit is contained in:
j3d1 2016-10-06 04:42:20 +02:00
parent 654fca9e67
commit a92e7da0f8
2 changed files with 7 additions and 2 deletions

View file

@ -94,7 +94,12 @@ void Session::do_read()
char c[]="> ";
do_write(c,strlen(c));
}
}
}else if ((asio::error::eof == ec) ||
(asio::error::connection_reset == ec))
{
m_state->quitPlayer(m_pid);
}
});
}

View file

@ -14,7 +14,7 @@ namespace game {
*/
class Trace {
public:
Trace(Missile *missile, float maxAge=12.0);
Trace(Missile *missile, float maxAge=15.0);
~Trace();
// Add the current position of the missile as a new point on the