los:: disabled playSeenSound if cannot currently see the enemy

This commit is contained in:
Zeno Rogue
2026-08-01 12:13:10 +02:00
parent 3ba6d631f6
commit 78b8dd1329
+1
View File
@@ -40,6 +40,7 @@ EX void playSeenSound(cell *c) {
bool nearme = c->cpdist <= 7;
forCellEx(c2, c) if(c2->cpdist <= 7) nearme = true;
if(!nearme) return;
if(!in_line_of_sight(c)) return;
if(among(c->monst, moEagle, moWindCrow, moAcidBird))
playSound(c, "seen-eagle");
else if(c->monst == moEarthElemental)