From 480303b75cdd37d3a877819a57589d5da7a02d7d Mon Sep 17 00:00:00 2001 From: Unknown Date: Fri, 2 Mar 2018 21:05:24 +0300 Subject: [PATCH] network: added check if peer_id belongs to local player --- vmf_source/scripts/mods/vmf/modules/core/network.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vmf_source/scripts/mods/vmf/modules/core/network.lua b/vmf_source/scripts/mods/vmf/modules/core/network.lua index 5dafa6c..bbaff96 100644 --- a/vmf_source/scripts/mods/vmf/modules/core/network.lua +++ b/vmf_source/scripts/mods/vmf/modules/core/network.lua @@ -1,4 +1,5 @@ -- @TODO: when recieving maps of other users, check for consistency +-- @TODO: don't call during suspension local vmf = get_mod("VMF") local _VMF_USERS = {} @@ -170,7 +171,7 @@ VMFMod.network_send = function (self, rpc_name, recipient, ...) end end - elseif recipient == "local" then + elseif recipient == "local" or recipient == Network.peer_id() then send_rpc_vmf_data_local(self:get_name(), rpc_name, ...)