From 6b9798595e9034811bab6c7dcfd06c8b55c1f505 Mon Sep 17 00:00:00 2001 From: David Markowitz <39972741+EmosewaMC@users.noreply.github.com> Date: Sat, 23 Dec 2023 09:28:32 -0800 Subject: [PATCH] fix: leavezone command (#1345) Players do not need access to leave Return to the Venture Explorer (rttve) via a slash command. They can leave through the usual zone method. Tested that you cannot leavezone in rttve --- dGame/dUtilities/SlashCommandHandler.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/dGame/dUtilities/SlashCommandHandler.cpp b/dGame/dUtilities/SlashCommandHandler.cpp index 7a41f6d0..05817e3b 100644 --- a/dGame/dUtilities/SlashCommandHandler.cpp +++ b/dGame/dUtilities/SlashCommandHandler.cpp @@ -292,9 +292,7 @@ void SlashCommandHandler::HandleChatCommand(const std::u16string& command, Entit const auto currentZone = Game::zoneManager->GetZone()->GetZoneID().GetMapID(); LWOMAPID newZone = 0; - if (currentZone == 1001) { - newZone = 1100; // Send to AG if we're in a Return to Venture Explorer instance - } else if (currentZone % 100 == 0) { + if (currentZone == 1001 || currentZone % 100 == 0) { ChatPackets::SendSystemMessage(sysAddr, u"You are not in an instanced zone."); return; } else {