summaryrefslogtreecommitdiff
path: root/src/map/magic.c
diff options
context:
space:
mode:
authorFate <fate-tmw@googlemail.com>2009-08-29 04:33:12 +0000
committerFate <fate-tmw@googlemail.com>2009-08-29 04:33:12 +0000
commit0e36f6e8d82e7cb0f01683454790a7123ea03197 (patch)
treeacc1e5049b905606dc1ab7a11a1abcb82305332a /src/map/magic.c
parent3e35855d56e8a20959520e921b19832b2b5eaf8f (diff)
downloadtmwa-0e36f6e8d82e7cb0f01683454790a7123ea03197.tar.gz
tmwa-0e36f6e8d82e7cb0f01683454790a7123ea03197.tar.bz2
tmwa-0e36f6e8d82e7cb0f01683454790a7123ea03197.tar.xz
tmwa-0e36f6e8d82e7cb0f01683454790a7123ea03197.zip
Added MadCamel's patch for allowing colons in character names for spellcasters
Diffstat (limited to 'src/map/magic.c')
-rw-r--r--src/map/magic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/magic.c b/src/map/magic.c
index fcf3ad6..327fa36 100644
--- a/src/map/magic.c
+++ b/src/map/magic.c
@@ -61,7 +61,7 @@ magic_message(character_t *caster,
int power = caster->matk1;
char *invocation_base = spell_ + 8;
- char *source_invocation = strchr(invocation_base, ':');
+ char *source_invocation = 1 + invocation_base + strlen(caster->status.name);
spell_t *spell;
char *parameter;
char *spell_invocation;