diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2021-08-30 03:25:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-30 03:25:32 +0200 |
commit | 9d38ebdc3ccea0ded0e7d8f3f73de9fe643e55e7 (patch) | |
tree | 13f0093b0a92176c549105b60bfcfe64e21cf806 /modules/mono/csharp_script.cpp | |
parent | 838a449d6466400fdf5b3a9088b850559cc64c8d (diff) | |
parent | fafddbc143878252ce34cec1f4f19d0b6507924b (diff) | |
download | redot-engine-9d38ebdc3ccea0ded0e7d8f3f73de9fe643e55e7.tar.gz |
Merge pull request #51481 from Faless/mp/4.x_no_pup
[Net] Rename RPC "puppet" to "auth", drop "master".
Diffstat (limited to 'modules/mono/csharp_script.cpp')
-rw-r--r-- | modules/mono/csharp_script.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/modules/mono/csharp_script.cpp b/modules/mono/csharp_script.cpp index 1f7f1390ea..978093b7d5 100644 --- a/modules/mono/csharp_script.cpp +++ b/modules/mono/csharp_script.cpp @@ -3466,13 +3466,10 @@ int CSharpScript::get_member_line(const StringName &p_member) const { MultiplayerAPI::RPCMode CSharpScript::_member_get_rpc_mode(IMonoClassMember *p_member) const { if (p_member->has_attribute(CACHED_CLASS(RemoteAttribute))) { - return MultiplayerAPI::RPC_MODE_REMOTE; - } - if (p_member->has_attribute(CACHED_CLASS(MasterAttribute))) { - return MultiplayerAPI::RPC_MODE_MASTER; + return MultiplayerAPI::RPC_MODE_ANY; } if (p_member->has_attribute(CACHED_CLASS(PuppetAttribute))) { - return MultiplayerAPI::RPC_MODE_PUPPET; + return MultiplayerAPI::RPC_MODE_AUTHORITY; } return MultiplayerAPI::RPC_MODE_DISABLED; |