[Proxy] Disable mod for zonebuilder

This commit is contained in:
momo5502 2017-02-18 21:23:56 +01:00
parent a7f0b6b4d2
commit 2ac212cbbb

View File

@ -79,7 +79,7 @@ namespace Steam
void Proxy::RunGame()
{
if (Steam::Enabled() && !Components::Dedicated::IsEnabled())
if (Steam::Enabled() && !Components::Dedicated::IsEnabled() && !Components::ZoneBuilder::IsEnabled())
{
SetEnvironmentVariableA("SteamAppId", ::Utils::String::VA("%lu", Proxy::AppId));
SetEnvironmentVariableA("SteamGameId", ::Utils::String::VA("%llu", Proxy::AppId & 0xFFFFFF));
@ -93,7 +93,7 @@ namespace Steam
void Proxy::SetMod(std::string mod)
{
if (!Proxy::ClientUser || !Steam::Enabled() || Components::Dedicated::IsEnabled()) return;
if (!Proxy::ClientUser || !Steam::Enabled() || Components::Dedicated::IsEnabled() || Components::ZoneBuilder::IsEnabled()) return;
GameID_t gameID;
gameID.type = 1; // k_EGameIDTypeGameMod