Stop blinking cursor on hero when farlooking

I happened to notice when looking at a ttyrec that farlooking
with automatic description would blink the cursor on hero for
one frame, and then back on the farlooked map location.
This commit is contained in:
Pasi Kallinen
2023-03-10 14:11:52 +02:00
parent ecf74d5308
commit 62476fe101
3 changed files with 3 additions and 2 deletions

View File

@@ -499,6 +499,7 @@ typedef uint32_t mmflags_nht; /* makemon MM_ flags */
#define URGENT_MESSAGE 8
#define PLINE_VERBALIZE 16
#define PLINE_SPEECH 32
#define NO_CURS_ON_U 64
/* get_count flags */
#define GC_NOFLAGS 0

View File

@@ -621,7 +621,7 @@ auto_describe(coordxy cx, coordxy cy)
if (do_screen_description(cc, TRUE, sym, tmpbuf, &firstmatch,
(struct permonst **) 0)) {
(void) coord_desc(cx, cy, tmpbuf, iflags.getpos_coords);
custompline((SUPPRESS_HISTORY | OVERRIDE_MSGTYPE),
custompline((SUPPRESS_HISTORY | OVERRIDE_MSGTYPE | NO_CURS_ON_U),
"%s%s%s%s%s", firstmatch, *tmpbuf ? " " : "", tmpbuf,
(iflags.autodescribe
&& getpos_getvalid && !(*getpos_getvalid)(cx, cy))

View File

@@ -179,7 +179,7 @@ vpline(const char *line, va_list the_args)
if (gv.vision_full_recalc)
vision_recalc(0);
if (u.ux)
flush_screen(1); /* %% */
flush_screen((gp.pline_flags & NO_CURS_ON_U) ? 0 : 1); /* %% */
putmesg(line);