mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
Many fixes to networking, demo should work now
This commit is contained in:
parent
1add52b55e
commit
2fa693273c
2 changed files with 14 additions and 4 deletions
|
@ -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 {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue