Skip to content

Commit

Permalink
feat(AZTH): correct hook OnHandleDevCommand
Browse files Browse the repository at this point in the history
  • Loading branch information
Winfidonarleyan committed Nov 12, 2021
1 parent 29a306e commit a899d88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/mod-as-platform/src/AZTH_SC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a899d88

Please sign in to comment.