forked from github/server
Bug 2444: set default scores
This commit is contained in:
parent
b353de43de
commit
95c5c86303
1 changed files with 5 additions and 0 deletions
|
@ -5,6 +5,8 @@
|
||||||
|
|
||||||
#include "alchemy.h"
|
#include "alchemy.h"
|
||||||
|
|
||||||
|
#include "modules/score.h"
|
||||||
|
|
||||||
#include "kernel/build.h"
|
#include "kernel/build.h"
|
||||||
#include "kernel/building.h"
|
#include "kernel/building.h"
|
||||||
#include "kernel/item.h"
|
#include "kernel/item.h"
|
||||||
|
@ -229,6 +231,9 @@ static void handle_item(parseinfo *pi, const XML_Char *el, const XML_Char **attr
|
||||||
handle_bad_input(pi, el, attr[i]);
|
handle_bad_input(pi, el, attr[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (itype->score == 0) {
|
||||||
|
itype->score = default_score(itype);
|
||||||
|
}
|
||||||
itype->flags = flags;
|
itype->flags = flags;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue