Add quit to test shutdown works; empty command to not send presence.

This commit is contained in:
Chris Marsh 2017-07-25 14:33:12 -07:00
parent 211350604b
commit eff657014b

View file

@ -68,21 +68,26 @@ static void gameLoop()
printf("You are standing in an open field west of a white house.\n"); printf("You are standing in an open field west of a white house.\n");
while (prompt(line, sizeof(line))) { while (prompt(line, sizeof(line))) {
if (time(NULL) & 1) { if (line[0]) {
printf("I don't understand that.\n"); if (line[0] == 'q') {
} break;
else {
space = strchr(line, ' ');
if (space) {
*space = 0;
} }
printf("I don't know the word \"%s\".\n", line); if (time(NULL) & 1) {
printf("I don't understand that.\n");
}
else {
space = strchr(line, ' ');
if (space) {
*space = 0;
}
printf("I don't know the word \"%s\".\n", line);
}
++FrustrationLevel;
updateDiscordPresence();
} }
++FrustrationLevel;
updateDiscordPresence();
#ifdef DISCORD_DISABLE_IO_THREAD #ifdef DISCORD_DISABLE_IO_THREAD
Discord_UpdateConnection(); Discord_UpdateConnection();
#endif #endif