don't say anything when there is no combo

This commit is contained in:
biglyderv 2025-03-28 16:37:38 -04:00
parent 26770efc64
commit 4b3b6c9111
Signed by: biglyderv
GPG key ID: 0E2EB0B4CD7397B5

View file

@ -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;