finetuning gameplay and disconnect fix
This commit is contained in:
parent
654fca9e67
commit
a92e7da0f8
2 changed files with 7 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue