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:
@@ -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
|
||||
|
||||
@@ -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))
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user