diff options
author | Fate <fate-tmw@googlemail.com> | 2009-09-11 05:38:13 +0000 |
---|---|---|
committer | Fate <fate-tmw@googlemail.com> | 2009-09-11 05:38:13 +0000 |
commit | 80361c9a3b7fde14bbc094cc1dd241b52e33d9bc (patch) | |
tree | 91a482b0e62ea440bd51ee6985ddd25d1d23d8da /src/map/magic.c | |
parent | 77af951f441c1c455550e5473b4fb30b4a5f5302 (diff) | |
download | tmwa-80361c9a3b7fde14bbc094cc1dd241b52e33d9bc.tar.gz tmwa-80361c9a3b7fde14bbc094cc1dd241b52e33d9bc.tar.bz2 tmwa-80361c9a3b7fde14bbc094cc1dd241b52e33d9bc.tar.xz tmwa-80361c9a3b7fde14bbc094cc1dd241b52e33d9bc.zip |
Added mapserver config option log_file to specify gzipped player action log file
Diffstat (limited to 'src/map/magic.c')
-rw-r--r-- | src/map/magic.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/map/magic.c b/src/map/magic.c index 327fa36..674da89 100644 --- a/src/map/magic.c +++ b/src/map/magic.c @@ -93,6 +93,12 @@ magic_message(character_t *caster, fprintf(stderr, "Found spell `%s', triggered = %d\n", spell_, effects != NULL); #endif + MAP_LOG("PC%d %d:%d,%d CAST %s %s", + caster->status.char_id, caster->bl.m, caster->bl.x, caster->bl.y, + spell->name, + effects? "SUCCESS" : "FAILURE"); + + if (effects) { invocation_t *invocation = spell_instantiate(effects, env); |