diff options
author | Steve Slaven <bpk@hoopajoo.net> | 2006-01-31 21:39:02 (GMT) |
---|---|---|
committer | Steve Slaven <bpk@hoopajoo.net> | 2006-01-31 21:39:02 (GMT) |
commit | 40c05f388c258f0df118466d795d5ac6b52fa0b6 (patch) | |
tree | f7c8b0e40112eca1698eb03ea8f8cb1c0a82a8f2 | |
parent | f9a182724680088ede1468fd4058811a36b11129 (diff) | |
download | powwow-40c05f388c258f0df118466d795d5ac6b52fa0b6.zip powwow-40c05f388c258f0df118466d795d5ac6b52fa0b6.tar.gz powwow-40c05f388c258f0df118466d795d5ac6b52fa0b6.tar.bz2 |
Make speedwalk execute aliases if defined instead of just sending
directions (Elestir)
-rw-r--r-- | map.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -24,6 +24,7 @@ #include "tty.h" #include "edit.h" #include "tcp.h" +#include "list.h" /* * mapping variables @@ -177,7 +178,9 @@ int map_walk __P3 (char *,word, int,silent, int,maponly) while (n--) { *buf = *word; if (!maponly) { - tcp_write(tcp_fd, buf); + if (*lookup_alias(buf)) + parse_instruction(buf, 1, 0, 0); // we want to execute aliases n,e,s,w,u,d + else tcp_write(tcp_fd, buf); } if (is_main || maponly) map_add_dir(*word); |