SQC-15_online #1
| @@ -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. | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user