Merge branch 'master'

This commit is contained in:
Enno Rehling 2018-02-25 20:27:16 +01:00
commit 28e9ddbdb4
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

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

View File

@ -345,16 +345,9 @@ const struct curse_type ct_skillmod = {
NULL, read_skill, write_skill 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) void register_unitcurse(void)
{ {
ct_register(&ct_fleechance);
ct_register(&ct_auraboost); ct_register(&ct_auraboost);
ct_register(&ct_magicboost); ct_register(&ct_magicboost);
ct_register(&ct_slavery); ct_register(&ct_slavery);

View File

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