From 0ddf60ab4f0c15a96e8324afc5111ffeaef3d932 Mon Sep 17 00:00:00 2001 From: Winfidonarleyan Date: Fri, 12 Nov 2021 18:39:06 +0700 Subject: [PATCH] feat(AZTH): correct hook OnHandleDevCommand 1 --- modules/mod-as-platform/src/AZTH_SC.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/mod-as-platform/src/AZTH_SC.cpp b/modules/mod-as-platform/src/AZTH_SC.cpp index 9035644..3aa07a6 100644 --- a/modules/mod-as-platform/src/AZTH_SC.cpp +++ b/modules/mod-as-platform/src/AZTH_SC.cpp @@ -133,12 +133,12 @@ class Command_SC : public CommandSC public: Command_SC() : CommandSC("Command_SC") { } - void OnHandleDevCommand(Player* player, std::string& argstr) override + void OnHandleDevCommand(Player* player, bool& argstr) override { if (!player) return; - if (argstr == "on") + if (argstr) { player->SetPhaseMask(uint32(PHASEMASK_ANYWHERE), false); player->SetGameMaster(true);