diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-12-17 16:49:07 +0100 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-12-17 16:49:07 +0100 |
commit | 7ff0bb74bc7db7dab1c33c5ec5724a882f836ea1 (patch) | |
tree | 4cfd724576f631015f50f01c2971e870d5039ed3 /crawl-ref/source/delay.cc | |
parent | e673127cb481843178c9d047413baf88844e438b (diff) | |
download | crawl-ref-7ff0bb74bc7db7dab1c33c5ec5724a882f836ea1.tar.gz crawl-ref-7ff0bb74bc7db7dab1c33c5ec5724a882f836ea1.zip |
Stop shift-running at map boundary.
Diffstat (limited to 'crawl-ref/source/delay.cc')
-rw-r--r-- | crawl-ref/source/delay.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/delay.cc b/crawl-ref/source/delay.cc index 5af0f6aa4c..5a02bbccf8 100644 --- a/crawl-ref/source/delay.cc +++ b/crawl-ref/source/delay.cc @@ -16,6 +16,7 @@ #include "attitude-change.h" #include "clua.h" #include "command.h" +#include "coord.h" #include "coordit.h" #include "database.h" #include "delay.h" @@ -1602,7 +1603,7 @@ void armour_wear_effects(const int item_slot) static command_type _get_running_command() { - if (kbhit()) + if (kbhit() || !in_bounds(you.pos() + you.running.pos)) { stop_running(); return CMD_NO_CMD; |