X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Ftools.c;h=0b33994c2c28f42dc1b9813628b1c345b8aefc88;hb=338cfb1f6b043bdeaa0c77518b2a58b364ebc941;hp=84b651c9895e014d1900bbbecfb9be46a0197fe5;hpb=c9d8e4e56f2c15baf85f2344043899c9782bddd2;p=rocksndiamonds.git diff --git a/src/tools.c b/src/tools.c index 84b651c9..0b33994c 100644 --- a/src/tools.c +++ b/src/tools.c @@ -1381,11 +1381,8 @@ boolean Request(char *text, unsigned int req_state) button_status = MB_RELEASED; - while(result<0) + while(result < 0) { - DoAnimation(); - Delay(10); - if (XPending(display)) { XEvent event; @@ -1494,6 +1491,11 @@ boolean Request(char *text, unsigned int req_state) else if (joy & JOY_BUTTON_2) result = 0; } + + DoAnimation(); + + /* don't eat all CPU time */ + Delay(10); } if (game_status != MAINMENU)