Refresh worm segments when (un)taming
Because newsym() would be called only on the head position of the worm, if hilite_pet was on, the segments and head of a long worm would have mismatched highlighting in the immediate aftermath of taming or untaming.
This commit is contained in:
11
src/worm.c
11
src/worm.c
@@ -988,4 +988,15 @@ flip_worm_segs_horizontal(struct monst *worm, int minx, int maxx)
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
redraw_worm(struct monst *worm)
|
||||
{
|
||||
struct wseg *curr = wtails[worm->wormno];
|
||||
|
||||
while (curr) {
|
||||
newsym(curr->wx, curr->wy);
|
||||
curr = curr->nseg;
|
||||
}
|
||||
}
|
||||
|
||||
/*worm.c*/
|
||||
|
||||
Reference in New Issue
Block a user