From 6f26898822d3e910b55dee8a8d36d3fd6f8c41a4 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 18 Nov 2018 11:32:59 +0100 Subject: [PATCH] fix accidental redefinition --- src/spells.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/src/spells.c b/src/spells.c index 4c900b2ae..a628f1949 100644 --- a/src/spells.c +++ b/src/spells.c @@ -5748,19 +5748,7 @@ static int sp_eternizewall(castorder * co) return cast_level; } -static bool change_spellpoints(struct unit *u, int delta) { - sc_mage *mage = get_mage(u); - if (mage) { - if (mage->spellpoints + delta >= 0) { - mage->spellpoints += delta; - return true; - } - mage->spellpoints = 0; - } - return false; -} - -static enum magic_t get_magic_type(const struct unit *u) { +static magic_t get_magic_type(const struct unit *u) { sc_mage *mage = get_mage(u); if (mage) { return mage->magietyp;