summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorremoitnane <remoit(DOT)nane(AT)gmail(DOT)com>2010-08-14 01:34:08 -0700
committerChuck Miller <shadowmil@gmail.com>2010-08-15 13:49:21 -0400
commitacf9579a3031e01bde2f38737fd64961e13a467f (patch)
treee726905bb5a237ee6f61cc3f4348f2038d4122f4
parent0d89804dd07e811d0a8573d3a428bddc476c26bb (diff)
downloadtmwa-acf9579a3031e01bde2f38737fd64961e13a467f.tar.gz
tmwa-acf9579a3031e01bde2f38737fd64961e13a467f.tar.bz2
tmwa-acf9579a3031e01bde2f38737fd64961e13a467f.tar.xz
tmwa-acf9579a3031e01bde2f38737fd64961e13a467f.zip
Remove unused code for obscuring spell invocations
Signed-off-by: Chuck Miller <shadowmil@gmail.com>
-rw-r--r--src/map/magic.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/map/magic.c b/src/map/magic.c
index 572203f..b67aaca 100644
--- a/src/map/magic.c
+++ b/src/map/magic.c
@@ -106,29 +106,14 @@ int magic_message (character_t * caster, char *spell_, size_t spell_len)
{
invocation_t *invocation = spell_instantiate (effects, env);
- /* We have a proper spell effect-- obscure the invocation! */
- while (*source_invocation)
- {
- if (((rand () * 100.0) / (RAND_MAX * 1.0)) <
- magic_conf.obscure_chance)
- *source_invocation = '*';
- ++source_invocation;
- }
-
spell_bind (caster, invocation);
spell_execute (invocation);
return (spell->flags & SPELL_FLAG_SILENT) ? -1 : 1;
}
else
- {
magic_free_env (env);
- /* Obscure proper almost-triggered spell */
- if (near_miss)
- while (*source_invocation)
- *source_invocation++ = '.';
- }
return 1;
}
else