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:
+2
-2
@@ -1056,8 +1056,8 @@ boxlock(struct obj *obj, struct obj *otmp) /* obj *is* a box */
|
|||||||
break;
|
break;
|
||||||
case WAN_OPENING:
|
case WAN_OPENING:
|
||||||
case SPE_KNOCK:
|
case SPE_KNOCK:
|
||||||
if (obj->olocked) { /* unlock; couldn't be broken */
|
if (obj->olocked) { /* unlock; isn't broken so doesn't need fixing */
|
||||||
pline("Klick!");
|
Soundeffect(se_klick, 50);
|
||||||
pline("Klick!");
|
pline("Klick!");
|
||||||
obj->olocked = 0;
|
obj->olocked = 0;
|
||||||
res = 1;
|
res = 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user