remove enum constants for curses that are no longer referred to by them (deprecated style).

This commit is contained in:
Enno Rehling 2015-07-07 21:10:18 +02:00
parent cc3c5580d4
commit d7f4fbe05d
3 changed files with 1 additions and 22 deletions

View File

@ -742,13 +742,7 @@ static const char *oldnames[MAXCURSE] = {
"speed",
"orcish",
"magicboost",
"insectfur",
"strength",
"worse",
"magicresistance",
"itemcloak",
"sparkle",
"skillmod"
"insectfur"
};
const char *oldcursename(int id)

View File

@ -98,7 +98,6 @@ extern "C" {
*/
enum {
/* struct's vom typ curse: */
C_FOGTRAP,
C_ANTIMAGICZONE,
C_FARVISION,
@ -128,18 +127,10 @@ extern "C" {
C_RIOT, /*region in Aufruhr */
C_NOCOST,
C_CURSED_BY_THE_GODS,
/* struct's vom untertyp curse_unit: */
C_SPEED, /* Beschleunigt */
C_ORC,
C_MBOOST,
C_KAELTESCHUTZ,
C_STRENGTH,
C_ALLSKILLS,
C_MAGICRESISTANCE, /* 44 - verändert Magieresistenz */
C_ITEMCLOAK,
C_SPARKLE,
/* struct's vom untertyp curse_skill: */
C_SKILL,
MAXCURSE /* OBS: when removing curses, remember to update read_ccompat() */
};

View File

@ -5011,12 +5011,6 @@ int sp_resist_magic_bonus(castorder * co)
u = pa->param[n]->data.u;
/* Ist die Einheit schon verzaubert, wirkt sich dies nur auf die
* Menge der Verzauberten Personen aus.
if (is_cursed(u->attribs, C_MAGICRESISTANCE, 0))
continue;
*/
m = _min(u->number, victims);
victims -= m;