From 51a991413fa31d56e97ef82091c9f6c1e85bf4e4 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 30 Apr 2017 22:46:35 +0200 Subject: [PATCH] use at_deprecate, as is intended. --- src/spells.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/spells.c b/src/spells.c index 468441cdd..332647fae 100644 --- a/src/spells.c +++ b/src/spells.c @@ -2931,10 +2931,6 @@ static int dc_read_compat(struct attrib *a, void *target, gamedata *data) } return AT_READ_FAIL; /* we don't care for the attribute. */ } - -attrib_type at_deathcloud_compat = { - "zauber_todeswolke", NULL, NULL, NULL, NULL, dc_read_compat -}; #endif /* ------------------------------------------------------------- */ @@ -6725,7 +6721,9 @@ void register_spells(void) { register_borders(); - at_register(&at_deathcloud_compat); +#ifdef COMPAT_DEATHCLOUD + at_deprecate("zauber_todeswolke", dc_read_compat); +#endif /* init_firewall(); */ ct_register(&ct_firewall);