diff options
author | Adam Borowski <kilobyte@angband.pl> | 2011-12-13 14:01:15 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2011-12-14 10:22:16 +0100 |
commit | d5a93c807e89bdccfd61b3871aca95d6088c56f4 (patch) | |
tree | 171a24ab076250b538f47788e378343dab8d26fd /crawl-ref/source/libunix.cc | |
parent | 81a932ab1fd9bd5c823fd04589c339979216be03 (diff) | |
download | crawl-ref-d5a93c807e89bdccfd61b3871aca95d6088c56f4.tar.gz crawl-ref-d5a93c807e89bdccfd61b3871aca95d6088c56f4.zip |
Disable death and delays during fsim.
If you somehow die, fsim would hang on a non-displayed prompt; delays would
make a single run take a week spent in sleep().
Note that fsim is currently completely broken by UCC changes.
Diffstat (limited to 'crawl-ref/source/libunix.cc')
-rw-r--r-- | crawl-ref/source/libunix.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/libunix.cc b/crawl-ref/source/libunix.cc index 40a9428334..ccc6a6bd7d 100644 --- a/crawl-ref/source/libunix.cc +++ b/crawl-ref/source/libunix.cc @@ -791,6 +791,9 @@ int wherey() void delay(unsigned int time) { + if (crawl_state.disables[DIS_DELAY]) + return; + #ifdef USE_TILE_WEB tiles.redraw(); tiles.send_message("{msg:'delay',t:%d}", time); |