remove unused ct_fleechance (misteltoe relic)

This commit is contained in:
Enno Rehling 2018-02-25 13:22:32 +01:00
parent 24a8d4e331
commit b67db4faf9
4 changed files with 4 additions and 9 deletions

3
s/cppcheck Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
cppcheck -U_MSC_VER --enable=all -IcJSON -Isrc -Iclibs -Istorage src

View File

@ -1014,7 +1014,7 @@ faction *read_faction(gamedata * data)
READ_STR(data->store, name, sizeof(name));
if (check_email(name) == 0) {
faction_setemail(f, name);
} else {
} else if (name[0]) {
log_warning("Invalid email address for faction %s: %s", itoa36(f->no), name);
faction_setemail(f, NULL);
}

View File

@ -345,16 +345,9 @@ const struct curse_type ct_skillmod = {
NULL, read_skill, write_skill
};
const struct curse_type ct_fleechance = {
"fleechance",
CURSETYP_NORM, 0, (M_DURATION | M_VIGOUR),
NULL, NULL, NULL, NULL, NULL
};
/* ------------------------------------------------------------- */
void register_unitcurse(void)
{
ct_register(&ct_fleechance);
ct_register(&ct_auraboost);
ct_register(&ct_magicboost);
ct_register(&ct_slavery);

View File

@ -23,7 +23,6 @@ extern "C" {
struct curse_type;
struct message;
extern const struct curse_type ct_fleechance;
extern const struct curse_type ct_slavery;
extern const struct curse_type ct_calmmonster;
extern const struct curse_type ct_speed;