X11: Obey timed_delay

I noticed a strange thing where the X11 windowport didn't show the tethered
thrown aklys animation correctly.  Interestingly, other stuff, such as zapped
wands did show the path.  I didn't bother trying to figure out what the core
was doing differently, as the animation worked in all the other windowports,
so instead fix the issue in X11, so it behaves the same as all the others.

The issue seems to be that the event loop exited on any(?) event, instead
of our specific timed event.  So, create our event with a magic id number,
and exit only when we encounter that.

Also: Obey the timed_delay option, and change the delay from 30ms to 50ms,
like in other windowports.
This commit is contained in:
Pasi Kallinen
2026-06-03 23:06:30 +03:00
parent d4e2c577ba
commit eb4d098717
4 changed files with 13 additions and 7 deletions
+1
View File
@@ -172,6 +172,7 @@ Windows: with SELECTSAVE don't display error messages to a regular player
dealt with external to the game, so try not to annoy
tty: allow custom glyph colors if they're basic 16 nethack colors
on terminals with less than 256 colors
X11: obey timed_delay
General New Features