fix issue #339 - duplicate feature messages
while 'mention_decor' is enabled. When stepping onto different terrain and one or more objects remained on the new spot after autopickup, describe_decor() was issuing its new-terrain message right before look_here()'s similar under-the-objects message. If autopickup grabbed everything or there weren't any objects to begin with, look_here() doesn't issue any dfeature (terrain) message. describe_decor() isn't smart enought to know whether that is going to happen. Give look_here() a new flag argument so that its caller can ask for the dfeature message to be skipped for the case where a similar message has already been given.
This commit is contained in:
@@ -1075,7 +1075,7 @@ E struct obj *FDECL(display_cinventory, (struct obj *));
|
||||
E struct obj *FDECL(display_minventory, (struct monst *, int, char *));
|
||||
E int NDECL(dotypeinv);
|
||||
E const char *FDECL(dfeature_at, (int, int, char *));
|
||||
E int FDECL(look_here, (int, BOOLEAN_P));
|
||||
E int FDECL(look_here, (int, unsigned));
|
||||
E int NDECL(dolook);
|
||||
E boolean FDECL(will_feel_cockatrice, (struct obj *, BOOLEAN_P));
|
||||
E void FDECL(feel_cockatrice, (struct obj *, BOOLEAN_P));
|
||||
|
||||
Reference in New Issue
Block a user