drawbridge tuning

Reported recently by <email deleted>:  opening or
closing the castle drawbridge by playing the tune wasn't using up a turn.
This commit is contained in:
nethack.rankin
2007-07-09 00:53:59 +00:00
parent a3ddcba9a7
commit 382bbf7f8e
2 changed files with 3 additions and 2 deletions

View File

@@ -358,6 +358,7 @@ nymphs could steal carried boulders
amnesia of object discoveries would never forget the very last one amnesia of object discoveries would never forget the very last one
code controlling item drops by small monsters still used pre-3.1.0 weight code controlling item drops by small monsters still used pre-3.1.0 weight
monsters who want the Amulet won't attack the Wizard to try to get it monsters who want the Amulet won't attack the Wizard to try to get it
opening or closing the castle drawbridge via music consumes a turn
Platform- and/or Interface-Specific Fixes Platform- and/or Interface-Specific Fixes

View File

@@ -1,4 +1,4 @@
/* SCCS Id: @(#)music.c 3.5 2006/04/14 */ /* SCCS Id: @(#)music.c 3.5 2007/07/08 */
/* Copyright (c) 1989 by Jean-Christophe Collet */ /* Copyright (c) 1989 by Jean-Christophe Collet */
/* NetHack may be freely redistributed. See license for details. */ /* NetHack may be freely redistributed. See license for details. */
@@ -626,7 +626,7 @@ struct obj *instr;
close_drawbridge(x,y); close_drawbridge(x,y);
else else
open_drawbridge(x,y); open_drawbridge(x,y);
return 0; return 1;
} }
} else if(!Deaf) { } else if(!Deaf) {
if (u.uevent.uheard_tune < 1) u.uevent.uheard_tune = 1; if (u.uevent.uheard_tune < 1) u.uevent.uheard_tune = 1;