(comtch): Parameter god permitted execution of any command, even when

com->c_permit disagreed.  Doesn't make sense and is inconsistent with
output of list.  Remove parameter.  The only command affected is
break.
This commit is contained in:
Markus Armbruster 2006-01-04 19:12:44 +00:00
parent 0b037fc23c
commit 8329b8884a
4 changed files with 5 additions and 7 deletions

View file

@ -62,8 +62,7 @@ dispatch(char *buf, char *redir)
struct cmndstr *command;
int cmd;
cmd = comtch(player->argp[0], player_coms,
player->ncomstat, player->god);
cmd = comtch(player->argp[0], player_coms, player->ncomstat);
if (cmd < 0) {
if (cmd == M_NOTUNIQUE)
pr("Command \"%s\" is ambiguous -- ", player->argp[0]);