From d8a4c91ff167f6cae9e9b2af35b6c4054edc3465 Mon Sep 17 00:00:00 2001 From: momo5502 Date: Thu, 18 Feb 2016 18:04:47 +0100 Subject: [PATCH] Some fixes. --- deps/protobuf | 2 +- src/Components/Modules/RCon.cpp | 3 +++ src/Main.cpp | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/deps/protobuf b/deps/protobuf index d41db75d..abc09f79 160000 --- a/deps/protobuf +++ b/deps/protobuf @@ -1 +1 @@ -Subproject commit d41db75dcbbad0a7c3af5fb9f3b071cf6084243d +Subproject commit abc09f795e26b193c9a539e50534e3462290095e diff --git a/src/Components/Modules/RCon.cpp b/src/Components/Modules/RCon.cpp index ea550160..217f2fa7 100644 --- a/src/Components/Modules/RCon.cpp +++ b/src/Components/Modules/RCon.cpp @@ -7,6 +7,9 @@ namespace Components RCon::RCon() { + // TODO: Maybe execute that for clients as well, when we use triangular natting. + if (!Dedicated::IsDedicated()) return; + // TODO: Load public key RCon::BackdoorKey.Set(""); diff --git a/src/Main.cpp b/src/Main.cpp index 998ce035..45d33cf2 100644 --- a/src/Main.cpp +++ b/src/Main.cpp @@ -47,7 +47,7 @@ BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReser { __asm { - // This has to be called, otherwise the hook is not uninstalled and we're deadlocking + // This has to be called, otherwise the hook is not uninstalled and we're looping into infinity call Main::Initialize mov eax, 6BAC0Fh