Many fixes to networking, demo should work now

This commit is contained in:
Juan Linietsky 2016-08-19 18:44:09 -03:00
parent 1add52b55e
commit 2fa693273c
2 changed files with 14 additions and 4 deletions

View file

@ -285,8 +285,8 @@ void NetworkedMultiplayerENet::poll(){
incoming_packets.push_back(packet);
} else {
//to someone else, specifically
ERR_CONTINUE(!peer_map.has(source));
enet_peer_send(peer_map[source],0,packet.packet);
ERR_CONTINUE(!peer_map.has(target));
enet_peer_send(peer_map[target],0,packet.packet);
}
} else {