Add newline for emergency button related errors

This commit is contained in:
Ultracoolguy 2020-11-08 13:45:27 -04:00 committed by Eyal Sawady
parent b22111593d
commit ca1166febf
No known key found for this signature in database
GPG Key ID: 604D3459E53A9952
1 changed files with 2 additions and 2 deletions

4
main.c
View File

@ -960,9 +960,9 @@ adventure(size_t pid, char *input)
snprintf(buf, sizeof(buf), "Nothing to report here\n# ");
} else if (strcmp(input, "press emergency button") == 0) {
if (players[pid].location != LOC_CAFETERIA) {
snprintf(buf, sizeof(buf), "You can't do that here");
snprintf(buf, sizeof(buf), "You can't do that here\n# ");
} else if (!alive(players[pid])) {
snprintf(buf, sizeof(buf), "Ghosts can't call emergencies");
snprintf(buf, sizeof(buf), "Ghosts can't call emergencies\n# ");
} else {
start_discussion(pid, SIZE_MAX);
return;