From 382bbf7f8e16caefb8ca2a59b0a68ab6e40e1d57 Mon Sep 17 00:00:00 2001 From: "nethack.rankin" Date: Mon, 9 Jul 2007 00:53:59 +0000 Subject: [PATCH] drawbridge tuning Reported recently by : opening or closing the castle drawbridge by playing the tune wasn't using up a turn. --- doc/fixes34.4 | 1 + src/music.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/fixes34.4 b/doc/fixes34.4 index 2d35f247d..dad7f4a67 100644 --- a/doc/fixes34.4 +++ b/doc/fixes34.4 @@ -358,6 +358,7 @@ nymphs could steal carried boulders 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 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 diff --git a/src/music.c b/src/music.c index 709fd22b4..4f04044a5 100644 --- a/src/music.c +++ b/src/music.c @@ -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 */ /* NetHack may be freely redistributed. See license for details. */ @@ -626,7 +626,7 @@ struct obj *instr; close_drawbridge(x,y); else open_drawbridge(x,y); - return 0; + return 1; } } else if(!Deaf) { if (u.uevent.uheard_tune < 1) u.uevent.uheard_tune = 1;