Skip to content
Snippets Groups Projects
Commit 3c9e6b01 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Don't sleep() after receiving input.

2.1 seconds.
parent 9c0c2fca
No related branches found
No related tags found
No related merge requests found
Pipeline #7755 passed
...@@ -4250,6 +4250,7 @@ doterm(struct bbslist *bbs) ...@@ -4250,6 +4250,7 @@ doterm(struct bbslist *bbs)
} }
break; break;
default: default:
sleep = false;
if (speed) { if (speed) {
lastchar = xp_timer(); lastchar = xp_timer();
nextchar = lastchar + 1 / (long double)(speed / 10); nextchar = lastchar + 1 / (long double)(speed / 10);
...@@ -4398,6 +4399,7 @@ doterm(struct bbslist *bbs) ...@@ -4398,6 +4399,7 @@ doterm(struct bbslist *bbs)
/* Get local input */ /* Get local input */
while (quitting || rip_kbhit()) { while (quitting || rip_kbhit()) {
sleep = false;
struct mouse_event mevent; struct mouse_event mevent;
updated = true; updated = true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment