From 8db1ac90096729d11a0914718e0db64de383eb40 Mon Sep 17 00:00:00 2001 From: nullifiedcat Date: Tue, 19 Dec 2017 22:40:38 +0300 Subject: [PATCH] g_invalid on disconnect + walkbot lebensraum 2s check --- src/hacks/Walkbot.cpp | 2 +- src/hooks/others.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hacks/Walkbot.cpp b/src/hacks/Walkbot.cpp index a686c00e..87ebbd0e 100644 --- a/src/hacks/Walkbot.cpp +++ b/src/hacks/Walkbot.cpp @@ -1258,7 +1258,7 @@ void Move() } } static Timer livingspace_timer{}; - if (livingspace_timer.test_and_set(1000 * 8)) + if (livingspace_timer.test_and_set(1000 * 2)) { CheckLivingSpace(); } diff --git a/src/hooks/others.cpp b/src/hooks/others.cpp index 55d7816f..3d8576bf 100644 --- a/src/hooks/others.cpp +++ b/src/hooks/others.cpp @@ -378,6 +378,7 @@ static CatVar die_if_vac(CV_SWITCH, "die_if_vac", "0", "Die if VAC banned"); void Shutdown_hook(void *_this, const char *reason) { + g_Settings.bInvalid = true; // This is a INetChannel hook - it SHOULDN'T be static because netchannel // changes. const Shutdown_t original =