g_invalid on disconnect + walkbot lebensraum 2s check

This commit is contained in:
nullifiedcat 2017-12-19 22:40:38 +03:00
parent 540a32c18a
commit 8db1ac9009
2 changed files with 2 additions and 1 deletions

View File

@ -1258,7 +1258,7 @@ void Move()
} }
} }
static Timer livingspace_timer{}; static Timer livingspace_timer{};
if (livingspace_timer.test_and_set(1000 * 8)) if (livingspace_timer.test_and_set(1000 * 2))
{ {
CheckLivingSpace(); CheckLivingSpace();
} }

View File

@ -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) void Shutdown_hook(void *_this, const char *reason)
{ {
g_Settings.bInvalid = true;
// This is a INetChannel hook - it SHOULDN'T be static because netchannel // This is a INetChannel hook - it SHOULDN'T be static because netchannel
// changes. // changes.
const Shutdown_t original = const Shutdown_t original =