Server::Connection::Connection(Server &s, Net::StreamSocket *o):
server(s),
socket(o),
- comm(*socket, server.proto, *this)
+ comm(*socket, server.proto, *this),
+ stale(false)
{
socket->signal_end_of_file.connect(sigc::mem_fun(this, &Connection::end_of_file));
comm.signal_handshake_done.connect(sigc::mem_fun(this, &Connection::handshake_done));
{
Train &train = server.layout.get_train(pkt.address);
train.ai_message(TrainAI::Message("set-target-speed", pkt.target_speed));
- train.ai_message(TrainAI::Message("set-reverse", pkt.reverse));
+ train.ai_message(TrainAI::Message("set-reverse", static_cast<bool>(pkt.reverse)));
}
catch(const exception &e)
{