summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFate <fate-tmw@googlemail.com>2009-01-31 16:23:02 -0700
committerFate <fate-tmw@googlemail.com>2009-01-31 16:23:02 -0700
commit2dea6f401e47184fd8f2dc7f4f408c0779af61af (patch)
tree95d3c093d2d227310ca040e235d49dcc32daf892
parentaa760452a033a4e1f8535185159f1d571a87e3ab (diff)
downloadtmwa-2dea6f401e47184fd8f2dc7f4f408c0779af61af.tar.gz
tmwa-2dea6f401e47184fd8f2dc7f4f408c0779af61af.tar.bz2
tmwa-2dea6f401e47184fd8f2dc7f4f408c0779af61af.tar.xz
tmwa-2dea6f401e47184fd8f2dc7f4f408c0779af61af.zip
Removed some debug output from magic
-rw-r--r--src/map/magic-stmt.c5
-rw-r--r--src/map/magic.c1
2 files changed, 0 insertions, 6 deletions
diff --git a/src/map/magic-stmt.c b/src/map/magic-stmt.c
index 38ee98e..d89a01e 100644
--- a/src/map/magic-stmt.c
+++ b/src/map/magic-stmt.c
@@ -99,7 +99,6 @@ free_invocation(invocation_t *invocation)
magic_free_env(invocation->env);
-fprintf(stderr, "[MDEBUG] Freeing spell %d\n", invocation->bl.id);
map_delblock(&invocation->bl);
map_delobject(invocation->bl.id); // also frees the object
// free(invocation);
@@ -855,13 +854,9 @@ spell_effect_report_termination(int invocation_id, int bl_id, int sc_id, int sup
int index = -1;
invocation_t *invocation = (invocation_t *) map_id2bl(invocation_id);
-fprintf(stderr, "[MDEBUG] Reporting remote termination of %d\n", invocation_id);
-
if (!invocation || invocation->bl.type != BL_SPELL)
return;
-fprintf(stderr, "[MDEBUG] %d is a valid invocation\n", invocation_id);
-
for (i = 0; i < invocation->status_change_refs_nr; i++) {
status_change_ref_t *cr = &invocation->status_change_refs[i];
if (cr->sc_type == sc_id && cr->bl_id == bl_id) {
diff --git a/src/map/magic.c b/src/map/magic.c
index 66c6444..8800bb3 100644
--- a/src/map/magic.c
+++ b/src/map/magic.c
@@ -93,7 +93,6 @@ magic_message(character_t *caster,
if (effects) {
invocation_t *invocation = spell_instantiate(effects, env);
-fprintf(stderr, "[MDEBUG] Allocd spell %d\n", invocation->bl.id);
/* We have a proper spell effect-- obscure the invocation! */
while (*source_invocation) {
if (((rand() * 100.0) / (RAND_MAX * 1.0)) < magic_conf.obscure_chance)