retreat lretreat: Strip trailing 'h' from retreat path

Has no effect now.  Before the recent rewrite of automatic retreat, it
could be used to trigger group retreat while staying put.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
Markus Armbruster 2015-01-10 10:03:33 +01:00
parent d5757a4735
commit 4de4da259a
3 changed files with 16 additions and 15 deletions

View file

@ -71,8 +71,7 @@ retreat(int type)
int nunits;
struct nstr_item ni;
union empobj_storage unit;
int rflags, ch, j;
unsigned i;
int i, rflags, ch, j;
char *rflagsc, *p, *name, *rpath, *what;
int *rflagsp;
char buf1[1024];
@ -96,6 +95,8 @@ retreat(int type)
return RET_SYN;
}
}
for (i--; i >= 0 && pq[i] == dirch[DIR_STOP]; i--)
pq[i] = 0;
} else
pq = NULL;