don't say anything when there is no combo
This commit is contained in:
parent
26770efc64
commit
4b3b6c9111
1 changed files with 4 additions and 1 deletions
|
@ -47,7 +47,7 @@ int main(int argc, char *argv[]) {
|
|||
|
||||
init_tables(elements, inv, polls, 1);
|
||||
|
||||
printf("%s, welcome to Elemental on Command Line!\n", name);
|
||||
printf("%s, welcome to Elemental on Command Line!\nType /help for commands.\n", name);
|
||||
int newline = 1;
|
||||
while (1) {
|
||||
// todo: separate into functions
|
||||
|
@ -85,6 +85,9 @@ int main(int argc, char *argv[]) {
|
|||
|
||||
int combos = get_command(command, command_re, sort_tmp);
|
||||
|
||||
if (combos < 2)
|
||||
continue;
|
||||
|
||||
int failed = 0;
|
||||
for (int i = 0; i < combos; i++) {
|
||||
uintptr_t result;
|
||||
|
|
Loading…
Reference in a new issue