pull request #1115 - streamline level_tele()

Pull request from entrez:  clean up the if/else-if/else logic in
level_tele().

Trying things a little differently this time.  This is an extra log
message for commit 4876b70b9b.

Closes #1115
This commit is contained in:
PatR
2023-11-05 15:15:27 -08:00

View File

@@ -1152,17 +1152,13 @@ level_tele(void)
the previous input was invalid so don't use it
as getlin()'s preloaded default answer */
getlin(qbuf, buf);
if (!strcmp(buf, "\033")) { /* cancelled */
if (Confusion && rnl(5)) {
pline("Oops...");
goto random_levtport;
}
return;
} else if (!strcmp(buf, "*")) {
if (!strcmp(buf, "*")) {
goto random_levtport;
} else if (Confusion && rnl(5)) {
pline("Oops...");
goto random_levtport;
} else if (!strcmp(buf, "\033")) { /* cancelled */
return;
}
if (wizard && !strcmp(buf, "?")) {
schar destlev;