From 40c05f388c258f0df118466d795d5ac6b52fa0b6 Mon Sep 17 00:00:00 2001 From: Steve Slaven Date: Tue, 31 Jan 2006 21:39:02 +0000 Subject: Make speedwalk execute aliases if defined instead of just sending directions (Elestir) diff --git a/map.c b/map.c index 5b2198c..1b6a375 100644 --- a/map.c +++ b/map.c @@ -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); -- cgit v0.10.2