Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.

Fix building against mono #11

Merged
merged 1 commit into from
Jul 2, 2020
Merged

Fix building against mono #11

merged 1 commit into from
Jul 2, 2020

Conversation

neqs20
Copy link
Contributor

@neqs20 neqs20 commented Jul 2, 2020

In Godot 3 there's no need to specify types while binding methods.

I also replaced ERR_EXPLAIN macro with new ones since this macro no longer exists.

@@ -451,7 +451,7 @@ Error ENetPacketPeer::put_packet_channel(const uint8_t *p_buffer, int p_buffer_s

E = peer_map.find(ABS(target_peer));
if (!E) {
ERR_EXPLAIN("Invalid Target Peer: " + itos(target_peer));
WARN_PRINT("Invalid Target Peer: " + itos(target_peer));
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ERR_FAIL_V_MSG(ERR_INVALID_PARAMETER, "Invalid Target Peer: " + itos(target_peer))

@neqs20
Copy link
Contributor Author

neqs20 commented Jul 2, 2020

This fixes #10

@Faless
Copy link
Owner

Faless commented Jul 2, 2020

@neqs20
Copy link
Contributor Author

neqs20 commented Jul 2, 2020

Done :)

@Faless Faless merged commit fc294ca into Faless:master Jul 2, 2020
@Faless
Copy link
Owner

Faless commented Jul 2, 2020

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants