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) {