X-Git-Url: https://git.yukkurigames.com/?p=rogue-pphs.git;a=blobdiff_plain;f=command.c;h=c85020a14e66ef810906a7b6d3d808e4c789b553;hp=6b8033b1417ec8d9c68e9ac9f43c164e7ebd2ab2;hb=5cb6d6a6b0531aada9712c5e37c59cd930c527c4;hpb=7bee0dea66d5b5a2112d2e69d4547128d56abf0c diff --git a/command.c b/command.c index 6b8033b..c85020a 100644 --- a/command.c +++ b/command.c @@ -101,26 +101,6 @@ command() count = 0; } } - switch (ch) - { - case 'f': - if (!on(player, ISBLIND)) - { - door_stop = TRUE; - firstmove = TRUE; - } - if (count && !newcount) - ch = direction; - else - ch = readchar(cw); - switch (ch) - { - case 'h': case 'j': case 'k': case 'l': - case 'y': case 'u': case 'b': case 'n': - ch = toupper(ch); - } - direction = ch; - } newcount = FALSE; /* * execute a command @@ -165,6 +145,11 @@ command() when 'R' : ring_off(); when 'o' : option(); when 'c' : call(); + when 'f': + if (!get_dir()) + after = FALSE; + else + flirt(delta.y, delta.x); when '>' : after = FALSE; d_level(); when '<' : after = FALSE; u_level(); when '?' : after = FALSE; help();