comparison rogue4/command.c @ 74:0fd87c5c5fca

rogue4: fix "You found you found" bug. Both search() and tr_name() printed "you found" when a trap was discovered. It has been removed from search().
author John "Elwin" Edwards <elwin@sdf.org>
date Mon, 20 Aug 2012 20:30:19 -0700
parents 4967c46f1320
children f871cb0539d3
comparison
equal deleted inserted replaced
73:3192c1e03970 74:0fd87c5c5fca
389 if (rnd(2) != 0) 389 if (rnd(2) != 0)
390 break; 390 break;
391 chat(y, x) = TRAP; 391 chat(y, x) = TRAP;
392 *fp |= F_REAL; 392 *fp |= F_REAL;
393 count = running = FALSE; 393 count = running = FALSE;
394 msg("%s%s", terse ? "" : "you found ", tr_name(*fp & F_TMASK)); 394 msg("%s", tr_name(*fp & F_TMASK));
395 break; 395 break;
396 } 396 }
397 } 397 }
398 } 398 }
399 399