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.
This commit is contained in:
PatR
2023-07-22 17:54:12 -07:00
parent 085594ac04
commit 06d7b0561c

View File

@@ -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;