From 06d7b0561c9c015e02f0788a8e701bc09df93897 Mon Sep 17 00:00:00 2001 From: PatR Date: Sat, 22 Jul 2023 17:54:12 -0700 Subject: [PATCH] double klick (not what you think...) When testing water-vault chests, I kept getting |Klick! Klick! when zapping them with a wand of opening. This had me scratching my head for a while, but it seems to have been caused by partially adding a sound effect. pline("Klick!") became duplicated and presumeably one of the two was intended to be edited into a sound-effect call but got overlooked. Sound_effect(se_klick,) doesn't make any sound though. --- src/lock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lock.c b/src/lock.c index 6dc2ac3ea..bfe297a50 100644 --- a/src/lock.c +++ b/src/lock.c @@ -1056,8 +1056,8 @@ boxlock(struct obj *obj, struct obj *otmp) /* obj *is* a box */ break; case WAN_OPENING: case SPE_KNOCK: - if (obj->olocked) { /* unlock; couldn't be broken */ - pline("Klick!"); + if (obj->olocked) { /* unlock; isn't broken so doesn't need fixing */ + Soundeffect(se_klick, 50); pline("Klick!"); obj->olocked = 0; res = 1;