diff options
author | Bardur Arantsson <bardur@scientician.net> | 2014-12-16 18:51:06 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2014-12-16 18:54:55 +0100 |
commit | 4d351b8d07c25415d5848e9486eb5cb52f02d72e (patch) | |
tree | 0b8045630e146eaa870280e2d3e7f13e50499ad2 /src/main-sdl.c | |
parent | ff252acf7f2f38e33017e82881c95825b54c7cee (diff) |
Replace usleep with C++11 this_thread::sleep_for()
Also remove TERM_XTRA_DELAY. The terminal abstraction should
not be used for providing general platform independence. As a
side effect this reintroduces support for "delay" on SDL, not
sure if that's a good idea or not.
Diffstat (limited to 'src/main-sdl.c')
-rw-r--r-- | src/main-sdl.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/main-sdl.c b/src/main-sdl.c index 07715aa0..907fbcf3 100644 --- a/src/main-sdl.c +++ b/src/main-sdl.c @@ -661,25 +661,6 @@ static errr Term_xtra_sdl(int n, int v) return (1); } - case TERM_XTRA_DELAY: - { - /* - * Delay for some milliseconds XXX XXX XXX - * - * This action is useful for proper "timing" of certain - * visual effects, such as breath attacks. - * - * This action is optional, but may be required by this file, - * especially if special "macro sequences" must be supported. - */ - - /* I think that this command is system independent... */ - /*sleep(v/1000);*/ - /* main-x11 uses usleep(1000*v); */ - /* main-win uses Sleep(v); */ - return (1); - } - } /* Unknown or Unhandled action */ |