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-gcu.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-gcu.c')
-rw-r--r-- | src/main-gcu.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/main-gcu.c b/src/main-gcu.c index 34589e85..a07f216d 100644 --- a/src/main-gcu.c +++ b/src/main-gcu.c @@ -675,11 +675,6 @@ static errr Term_xtra_gcu(int n, int v) while (!Term_xtra_gcu_event(FALSE)); return (0); - /* Delay */ - case TERM_XTRA_DELAY: - usleep(1000 * v); - return (0); - /* React to events */ case TERM_XTRA_REACT: Term_xtra_gcu_react(); |