resolve 5 analyzer warnings if no SND_LIB_* define
This commit is contained in:
+2
-1
@@ -4210,8 +4210,9 @@ flip_through_book(struct obj *obj)
|
|||||||
|
|
||||||
if (obj->otyp == SPE_BOOK_OF_THE_DEAD) {
|
if (obj->otyp == SPE_BOOK_OF_THE_DEAD) {
|
||||||
if (!Deaf) {
|
if (!Deaf) {
|
||||||
if (!Hallucination)
|
if (!Hallucination) {
|
||||||
Soundeffect(se_rustling_paper, 50);
|
Soundeffect(se_rustling_paper, 50);
|
||||||
|
}
|
||||||
You_hear("the pages make an unpleasant %s sound.",
|
You_hear("the pages make an unpleasant %s sound.",
|
||||||
Hallucination ? "chuckling"
|
Hallucination ? "chuckling"
|
||||||
: "rustling");
|
: "rustling");
|
||||||
|
|||||||
@@ -110,10 +110,11 @@ boulder_hits_pool(
|
|||||||
the(xname(otmp)), fills_up ? "fills" : "falls into",
|
the(xname(otmp)), fills_up ? "fills" : "falls into",
|
||||||
what);
|
what);
|
||||||
} else if (!Deaf) {
|
} else if (!Deaf) {
|
||||||
if (lava)
|
if (lava) {
|
||||||
Soundeffect(se_sizzling, 100);
|
Soundeffect(se_sizzling, 100);
|
||||||
else
|
} else {
|
||||||
Soundeffect(se_splash, 100);
|
Soundeffect(se_splash, 100);
|
||||||
|
}
|
||||||
You_hear("a%s splash.", lava ? " sizzling" : "");
|
You_hear("a%s splash.", lava ? " sizzling" : "");
|
||||||
}
|
}
|
||||||
wake_nearto(rx, ry, 40);
|
wake_nearto(rx, ry, 40);
|
||||||
|
|||||||
+2
-1
@@ -1321,8 +1321,9 @@ dokick(void)
|
|||||||
} else if (!(gm.maploc->looted & S_LPUDDING) && !rn2(3)
|
} else if (!(gm.maploc->looted & S_LPUDDING) && !rn2(3)
|
||||||
&& !(gm.mvitals[PM_BLACK_PUDDING].mvflags & G_GONE)) {
|
&& !(gm.mvitals[PM_BLACK_PUDDING].mvflags & G_GONE)) {
|
||||||
if (Blind) {
|
if (Blind) {
|
||||||
if (!Deaf)
|
if (!Deaf) {
|
||||||
Soundeffect(se_gushing_sound, 100);
|
Soundeffect(se_gushing_sound, 100);
|
||||||
|
}
|
||||||
You_hear("a gushing sound.");
|
You_hear("a gushing sound.");
|
||||||
} else {
|
} else {
|
||||||
pline("A %s ooze gushes up from the drain!",
|
pline("A %s ooze gushes up from the drain!",
|
||||||
|
|||||||
+3
-2
@@ -1350,10 +1350,11 @@ seffect_scare_monster(struct obj **sobjp)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (otyp == SCR_SCARE_MONSTER || !ct) {
|
if (otyp == SCR_SCARE_MONSTER || !ct) {
|
||||||
if (confused || scursed)
|
if (confused || scursed) {
|
||||||
Soundeffect(se_sad_wailing, 50);
|
Soundeffect(se_sad_wailing, 50);
|
||||||
else
|
} else {
|
||||||
Soundeffect(se_sad_wailing, 50);
|
Soundeffect(se_sad_wailing, 50);
|
||||||
|
}
|
||||||
You_hear("%s %s.", (confused || scursed) ? "sad wailing"
|
You_hear("%s %s.", (confused || scursed) ? "sad wailing"
|
||||||
: "maniacal laughter",
|
: "maniacal laughter",
|
||||||
!ct ? "in the distance" : "close by");
|
!ct ? "in the distance" : "close by");
|
||||||
|
|||||||
@@ -4803,8 +4803,9 @@ zap_over_floor(
|
|||||||
lev->typ = lava ? ROOM : ICE;
|
lev->typ = lava ? ROOM : ICE;
|
||||||
}
|
}
|
||||||
bury_objs(x, y);
|
bury_objs(x, y);
|
||||||
if (!lava)
|
if (!lava) {
|
||||||
Soundeffect(se_soft_crackling, 30);
|
Soundeffect(se_soft_crackling, 30);
|
||||||
|
}
|
||||||
if (see_it) {
|
if (see_it) {
|
||||||
if (lava)
|
if (lava)
|
||||||
Norep("The %s cools and solidifies.",
|
Norep("The %s cools and solidifies.",
|
||||||
|
|||||||
Reference in New Issue
Block a user