eliminate find_spell warning for games where nobody is cursed, and you cannot summon igjarjuk

This commit is contained in:
Enno Rehling 2015-10-12 18:59:15 +02:00
parent 53fd192d63
commit f2b0ba1ec6
2 changed files with 2 additions and 2 deletions

View file

@ -1691,7 +1691,7 @@ void do_combatmagic(battle * b, combatmagic_t was)
if (was == DO_PRECOMBATSPELL) { if (was == DO_PRECOMBATSPELL) {
for (s = b->sides; s != b->sides + b->nsides; ++s) { for (s = b->sides; s != b->sides + b->nsides; ++s) {
fighter *fig = 0; fighter *fig = 0;
if (fval(s->faction, FFL_CURSED) && s->bf->attacker) { if (s->bf->attacker && fval(s->faction, FFL_CURSED)) {
spell *sp = find_spell("igjarjuk"); spell *sp = find_spell("igjarjuk");
if (sp) { if (sp) {
int si; int si;

View file

@ -113,7 +113,7 @@ spell *find_spell(const char *name)
cb_get_kv(match, &sp, sizeof(sp)); cb_get_kv(match, &sp, sizeof(sp));
} }
else { else {
log_warning("find_spell: could not find spell '%s'\n", name); log_debug("find_spell: could not find spell '%s'\n", name);
} }
return sp; return sp;
} }