From acf9579a3031e01bde2f38737fd64961e13a467f Mon Sep 17 00:00:00 2001 From: remoitnane Date: Sat, 14 Aug 2010 01:34:08 -0700 Subject: Remove unused code for obscuring spell invocations Signed-off-by: Chuck Miller --- src/map/magic.c | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'src') 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 -- cgit v1.2.3-70-g09d2