X-Git-Url: https://plomlompom.com/repos/todo?a=blobdiff_plain;f=src%2Fclient%2Fcommand_db.c;h=846f87ff579483e55ff355d6fb78213f0c57b644;hb=21cac2d976f806643aee1471bcee7b38597ac121;hp=4835392318ae2e161b54344fdaa6a32ecd64cb00;hpb=92bfb08a4aacd653e94746ccc8c68c45b8e372cb;p=plomrogue diff --git a/src/client/command_db.c b/src/client/command_db.c index 4835392..846f87f 100644 --- a/src/client/command_db.c +++ b/src/client/command_db.c @@ -29,25 +29,6 @@ static void copy_tokenized_string(char ** ch_ptr, char * delim) -extern uint8_t is_command_id_shortdsc(uint8_t id, char * shortdsc) -{ - struct Command * cmd_ptr = world.cmd_db.cmds; - while (1) - { - if (id == cmd_ptr->id) - { - if (strcmp(shortdsc, cmd_ptr->dsc_short)) - { - return 0; - } - return 1; - } - cmd_ptr = &cmd_ptr[1]; - } -} - - - extern uint8_t get_command_id(char * dsc_short) { struct Command * cmd_ptr = world.cmd_db.cmds;