From 84a376b425b8b48de2455c2eecf64e3c420545f4 Mon Sep 17 00:00:00 2001 From: enteryournamehere <11255568+enteryournamehere@users.noreply.github.com> Date: Tue, 18 Jan 2022 20:48:56 +0100 Subject: [PATCH] Add zone 1700 to list of accessible zones (#87) * Add zone 1700 to list of accessible zones also fix indentation * Indent using tabs instead of spaces * Add zone 1500 * Remove zone 1500 and add back 1700 which was accidentally deleted again --- dGame/dUtilities/SlashCommandHandler.cpp | 91 ++++++++++++------------ 1 file changed, 46 insertions(+), 45 deletions(-) diff --git a/dGame/dUtilities/SlashCommandHandler.cpp b/dGame/dUtilities/SlashCommandHandler.cpp index a5573770..0217554e 100644 --- a/dGame/dUtilities/SlashCommandHandler.cpp +++ b/dGame/dUtilities/SlashCommandHandler.cpp @@ -1928,53 +1928,54 @@ void SlashCommandHandler::HandleChatCommand(const std::u16string& command, Entit } bool SlashCommandHandler::CheckIfAccessibleZone(const unsigned int zoneID) { - switch (zoneID) { - case 98: - case 1000: - case 1001: - - case 1100: - case 1101: - case 1150: - case 1151: - case 1152: - - case 1200: - case 1201: + switch (zoneID) { + case 98: + case 1000: + case 1001: - case 1250: - case 1251: - case 1260: - - case 1300: - case 1350: - case 1351: - - case 1400: - case 1401: - case 1450: - case 1451: - - case 1600: - case 1601: - case 1602: - case 1603: - case 1604: - - case 1800: - case 1900: - case 2000: + case 1100: + case 1101: + case 1150: + case 1151: + case 1152: - case 58004: - case 58005: - case 58006: - return true; - - default: - return false; - } - - return false; + case 1200: + case 1201: + + case 1250: + case 1251: + case 1260: + + case 1300: + case 1350: + case 1351: + + case 1400: + case 1401: + case 1450: + case 1451: + + case 1600: + case 1601: + case 1602: + case 1603: + case 1604: + + case 1700: + case 1800: + case 1900: + case 2000: + + case 58004: + case 58005: + case 58006: + return true; + + default: + return false; + } + + return false; } void SlashCommandHandler::SendAnnouncement(const std::string& title, const std::string& message) {