Browse Source

Fix commands complaining about common commands

Some mutators use mutate specific mutate commands "help", "version",
"status" and "credits" to ouput info about themselves.
Before this patch commands complained that there wasn't first three of
them. Now it doesn't complain.
pull/8/head
Anton Tarasenko 2 years ago
parent
commit
739ef224eb
  1. 10
      sources/Commands/Commands_Feature.uc

10
sources/Commands/Commands_Feature.uc

@ -486,10 +486,12 @@ private function HandleMutate(string command, PlayerController sendingPlayer)
local Parser parser;
local EPlayer sender;
// Ignore just "help", since a lot of other mutators use it
if (command ~= "help") {
return;
}
// A lot of other mutators use these commands
if (command ~= "help") return;
if (command ~= "version") return;
if (command ~= "status") return;
if (command ~= "credits") return;
parser = _.text.ParseString(command);
sender = _.players.FromController(sendingPlayer);
HandleInput(parser, sender);

Loading…
Cancel
Save