Make users of struct cmdstr agree on prototype of member c_addr.
(player_login): Use player->argp[] to store arguments. (client_cmd, user_cmd, sanc_cmd, coun_cmd, pass_cmd, play_cmd, kill_cmd, list_cmd, quit_cmd): Remove parameters, fetch arguments from player->argp[]. (cmdstr): Prototype member c_addr. (play_cmd): Used to silently ignore up to two arguments if there wasn't a third one. Don't.
This commit is contained in:
parent
7aafe31f70
commit
d2244b6c24
2 changed files with 41 additions and 40 deletions
|
@ -37,7 +37,7 @@
|
|||
struct cmndstr {
|
||||
s_char *c_form; /* prototype of command */
|
||||
int c_cost; /* btu cost of command */
|
||||
int (*c_addr) (); /* core addr of appropriate routine */
|
||||
int (*c_addr)(void); /* core addr of appropriate routine */
|
||||
int c_flags;
|
||||
int c_permit; /* who is allowed to "do" this command */
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue