X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fnetwork%2Fserver.cpp;h=d27683965897161a1c50f26db4716070c53f5002;hb=e9653dffd0026fb3c02c91a4c0feca688a86c721;hp=dd0dd8b927bde2a43ea9522d30aaef3f99cd912a;hpb=9ddcd066e37e4c72685817c042c30897786ece05;p=r2c2.git diff --git a/source/network/server.cpp b/source/network/server.cpp index dd0dd8b..d276839 100644 --- a/source/network/server.cpp +++ b/source/network/server.cpp @@ -6,9 +6,9 @@ Distributed under the GPL */ #include -#include "libmarklin/locotype.h" #include "libmarklin/route.h" #include "libmarklin/train.h" +#include "libmarklin/vehicletype.h" #include "server.h" using namespace std; @@ -119,11 +119,11 @@ Server::Connection::~Connection() void Server::Connection::handshake_done() { - const map &routes = server.layout.get_routes(); - for(map::const_iterator i=routes.begin(); i!=routes.end(); ++i) + const set &routes = server.layout.get_routes(); + for(set::const_iterator i=routes.begin(); i!=routes.end(); ++i) { RouteInfoPacket pkt; - pkt.name = i->first; + pkt.name = (*i)->get_name(); comm.send(pkt); }