From 995a177c37c9dd21c922f59e80c01d662686cfe8 Mon Sep 17 00:00:00 2001 From: Barry Kane Date: Wed, 1 Mar 2023 23:14:37 +0000 Subject: [PATCH] Increased prompt reprint delay. - The client's prompt now delays for twice as long to ensure that an updated prompt is displayed next. --- src/client/SilverMUDClient.c | 2 +- src/linkedlist.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/client/SilverMUDClient.c b/src/client/SilverMUDClient.c index 6209eff..a011f51 100644 --- a/src/client/SilverMUDClient.c +++ b/src/client/SilverMUDClient.c @@ -52,7 +52,7 @@ void * messageSender(void * parameters) // Repeatedly get input from the user, place it in a userMessage, and send it to the server: while (!shouldExit) { - usleep(100000); + usleep(200000); // Clear the window: wprintw(window, "\n\n\n"); diff --git a/src/linkedlist.c b/src/linkedlist.c index 59e7bab..c7ff81d 100644 --- a/src/linkedlist.c +++ b/src/linkedlist.c @@ -436,7 +436,8 @@ bool getIndexFromList(list * list, void * data, listDataType type, size_t * inde return false; } - for(*index = 0; *index < list->itemCount; *index += 1) + // Search through the list, one-by-one, comparing the list items: + for (*index = 0; *index < list->itemCount; *index += 1) { switch (type) {