follow-up bit
minor, but inner loop assignments to glyph and mapsym are only needed when corr_next2u is TRUE
This commit is contained in:
@@ -1316,14 +1316,17 @@ dolookaround(void)
|
|||||||
iflags.getloc_filter = GFILTER_VIEW;
|
iflags.getloc_filter = GFILTER_VIEW;
|
||||||
for (y = 0; y < ROWNO; y++)
|
for (y = 0; y < ROWNO; y++)
|
||||||
for (x = 1; x < COLNO; x++) {
|
for (x = 1; x < COLNO; x++) {
|
||||||
int glyph = glyph_at(x, y),
|
int glyph, mapsym;
|
||||||
mapsym = glyph_is_cmap(glyph) ? glyph_to_cmap(glyph) : -1;
|
boolean iscorr = (corr_next2u
|
||||||
|
&& (glyph = glyph_at(x, y)) >= 0
|
||||||
|
&& glyph_is_cmap(glyph)
|
||||||
|
&& ((mapsym = glyph_to_cmap(glyph)) == S_corr
|
||||||
|
|| mapsym == S_litcorr));
|
||||||
|
|
||||||
if (!u_at(x, y)
|
if (!u_at(x, y)
|
||||||
&& (gather_locs_interesting(x, y, GLOC_INTERESTING)
|
&& (gather_locs_interesting(x, y, GLOC_INTERESTING)
|
||||||
/* note: GLOC_INTERESTING catches S_engrcorr */
|
/* note: GLOC_INTERESTING catches S_engrcorr */
|
||||||
|| (corr_next2u && (mapsym == S_corr
|
|| iscorr)) {
|
||||||
|| mapsym == S_litcorr)))) {
|
|
||||||
char buf[BUFSZ];
|
char buf[BUFSZ];
|
||||||
coord cc;
|
coord cc;
|
||||||
int sym = 0;
|
int sym = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user