forked from github/server
Merge branch 'master' of https://github.com/ennorehling/eressea
This commit is contained in:
commit
97a78ad6b0
|
@ -33,8 +33,9 @@ set -e
|
|||
[ -z $BUILD ] && BUILD=Debug ; export BUILD
|
||||
# cppcheck_tests
|
||||
s/cmake-init --db=sqlite
|
||||
s/build
|
||||
cd process
|
||||
cd Debug
|
||||
scan-build make
|
||||
cd ../process
|
||||
make
|
||||
cd $ROOT
|
||||
inifile
|
||||
|
|
|
@ -915,7 +915,8 @@ void cr_output_unit(stream *out, const faction * f,
|
|||
if (fval(u, UFL_HUNGER) && (u->faction == f)) {
|
||||
stream_printf(out, "1;hunger\n");
|
||||
}
|
||||
if (is_mage(u)) {
|
||||
mage = get_mage(u);
|
||||
if (mage) {
|
||||
stream_printf(out, "%d;Aura\n", get_spellpoints(u));
|
||||
stream_printf(out, "%d;Auramax\n", max_spellpoints_depr(u->region, u));
|
||||
}
|
||||
|
@ -957,7 +958,6 @@ void cr_output_unit(stream *out, const faction * f,
|
|||
}
|
||||
|
||||
/* spells that this unit can cast */
|
||||
mage = get_mage(u);
|
||||
if (mage) {
|
||||
int maxlevel = effskill(u, SK_MAGIC, NULL);
|
||||
cr_output_spells(out, u, maxlevel);
|
||||
|
|
Loading…
Reference in New Issue