forked from github/server
Merge branch 'master'
This commit is contained in:
commit
28e9ddbdb4
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/sh
|
||||||
|
cppcheck -U_MSC_VER --enable=all -IcJSON -Isrc -Iclibs -Istorage src
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue