forked from github/server
remove unused newfaction.bonus
thanks to @stm2. This feature is long dead.
This commit is contained in:
parent
5ce4939351
commit
b676bb0968
|
@ -147,8 +147,7 @@ newfaction *read_newfactions(const char *filename)
|
||||||
faction *f;
|
faction *f;
|
||||||
char race[20], email[64], lang[8], password[16];
|
char race[20], email[64], lang[8], password[16];
|
||||||
newfaction *nf, **nfi;
|
newfaction *nf, **nfi;
|
||||||
int bonus = 0, subscription = 0;
|
int alliance = 0, subscription = 0;
|
||||||
int alliance = 0;
|
|
||||||
|
|
||||||
if (fgets(buf, sizeof(buf), F) == NULL)
|
if (fgets(buf, sizeof(buf), F) == NULL)
|
||||||
break;
|
break;
|
||||||
|
@ -156,8 +155,8 @@ newfaction *read_newfactions(const char *filename)
|
||||||
email[0] = '\0';
|
email[0] = '\0';
|
||||||
password[0] = '\0';
|
password[0] = '\0';
|
||||||
|
|
||||||
if (sscanf(buf, "%54s %20s %8s %d %d %16s %d", email, race, lang, &bonus,
|
if (sscanf(buf, "%54s %20s %8s %16s %d %d", email, race, lang,
|
||||||
&subscription, password, &alliance) < 3) {
|
password, &subscription, &alliance) < 3) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (email[0] == '#') {
|
if (email[0] == '#') {
|
||||||
|
@ -228,7 +227,6 @@ newfaction *read_newfactions(const char *filename)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
nf->lang = get_locale(lang);
|
nf->lang = get_locale(lang);
|
||||||
nf->bonus = bonus;
|
|
||||||
assert(nf->race && nf->email && nf->lang);
|
assert(nf->race && nf->email && nf->lang);
|
||||||
nfi = &newfactions;
|
nfi = &newfactions;
|
||||||
while (*nfi) {
|
while (*nfi) {
|
||||||
|
|
|
@ -24,7 +24,6 @@ extern "C" {
|
||||||
char *password;
|
char *password;
|
||||||
const struct locale *lang;
|
const struct locale *lang;
|
||||||
const struct race *race;
|
const struct race *race;
|
||||||
int bonus;
|
|
||||||
int subscription;
|
int subscription;
|
||||||
bool oldregions;
|
bool oldregions;
|
||||||
struct alliance *allies;
|
struct alliance *allies;
|
||||||
|
|
Loading…
Reference in New Issue