Fuck around and find out

This commit is contained in:
MarcEricMartel 2023-11-27 13:15:39 -05:00
parent 9a7d25c1d9
commit 5e57a13820

View File

@ -97,7 +97,10 @@ int Connector::Connect(const char* srv_addr, std::string name) {
pl = new netprot::PlayerInfo(); pl = new netprot::PlayerInfo();
if (!netprot::Deserialize(pl, pck, &bsize)) if (!netprot::Deserialize(pl, pck, &bsize))
++errors; ++errors;
else m_players[pl->id] = pl; else {
m_players[pl->id] = pl;
std::cout << pl->name << std::endl;
}
break; break;
case TEAMINF: case TEAMINF:
// TODO: Faire dequoi avec TeamInfo si on fini par avoir des teams. // TODO: Faire dequoi avec TeamInfo si on fini par avoir des teams.