From 7ea90b03c4637b099ceef36d6ba425055ec20c52 Mon Sep 17 00:00:00 2001 From: Mr_Goldberg Date: Sat, 23 Jan 2021 23:03:10 -0500 Subject: [PATCH] Fixed some dedicated servers not booting up correctly. --- dll/dll.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dll/dll.cpp b/dll/dll.cpp index b18827e4..b022c3b6 100644 --- a/dll/dll.cpp +++ b/dll/dll.cpp @@ -187,7 +187,7 @@ static void *create_client_interface(const char *ver) STEAMAPI_API void * S_CALLTYPE SteamInternal_CreateInterface( const char *ver ) { PRINT_DEBUG("SteamInternal_CreateInterface %s\n", ver); - if (!get_steam_client()->user_logged_in) return NULL; + if (!get_steam_client()->user_logged_in && !get_steam_client()->IsServerInit()) return NULL; return create_client_interface(ver); } @@ -509,6 +509,7 @@ STEAMAPI_API bool S_CALLTYPE SteamAPI_InitSafe() STEAMAPI_API ISteamClient *SteamClient() { PRINT_DEBUG("SteamClient()\n"); load_old_interface_versions(); + if (!get_steam_client()->user_logged_in) return NULL; return (ISteamClient *)SteamInternal_CreateInterface(old_client); }