retreat lretreat: Deprecate pseudo-condition 'c'
It's redundant; retreat path 'h' cancels orders just fine. Document that instead. 'c' still works, and I don't plan to break it as long as it doesn't get in the way, which seems unlikely. Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
parent
482d54c953
commit
148af51ab3
4 changed files with 13 additions and 8 deletions
|
@ -114,7 +114,8 @@ retreat(int type)
|
|||
}
|
||||
for (i--; i >= 0 && pq[i] == dirch[DIR_STOP]; i--)
|
||||
pq[i] = 0;
|
||||
|
||||
}
|
||||
if (pq && *pq) {
|
||||
again:
|
||||
fl = getstarg(player->argp[3],
|
||||
"Retreat conditions ('?' to list available ones)? ",
|
||||
|
@ -125,6 +126,7 @@ retreat(int type)
|
|||
for (i = 0; fl[i]; i++) {
|
||||
ch = tolower(fl[i]);
|
||||
if (ch == 'c') {
|
||||
/* Deprecated, but keeping it around doesn't hurt */
|
||||
*pq = 0;
|
||||
break;
|
||||
}
|
||||
|
@ -135,7 +137,6 @@ retreat(int type)
|
|||
rflagsc[j],
|
||||
symbol_by_value(1 << j, retreat_flags));
|
||||
}
|
||||
pr("c\tcancel retreat order\n");
|
||||
goto again;
|
||||
}
|
||||
p = strchr(rflagsc, ch);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue