don't say anything when there is no combo
Това подаване се съдържа в:
родител
26770efc64
подаване
4b3b6c9111
1 променени файла с 4 добавяния и 1 изтривания
|
@ -47,7 +47,7 @@ int main(int argc, char *argv[]) {
|
||||||
|
|
||||||
init_tables(elements, inv, polls, 1);
|
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;
|
int newline = 1;
|
||||||
while (1) {
|
while (1) {
|
||||||
// todo: separate into functions
|
// todo: separate into functions
|
||||||
|
@ -85,6 +85,9 @@ int main(int argc, char *argv[]) {
|
||||||
|
|
||||||
int combos = get_command(command, command_re, sort_tmp);
|
int combos = get_command(command, command_re, sort_tmp);
|
||||||
|
|
||||||
|
if (combos < 2)
|
||||||
|
continue;
|
||||||
|
|
||||||
int failed = 0;
|
int failed = 0;
|
||||||
for (int i = 0; i < combos; i++) {
|
for (int i = 0; i < combos; i++) {
|
||||||
uintptr_t result;
|
uintptr_t result;
|
||||||
|
|
Зареждане…
Препратка в нова задача